Pull USEFUL_PACKAGES from the tex system (via kpsewhich) not current directory.
authorW. Trevor King <wking@drexel.edu>
Tue, 16 Nov 2010 21:43:49 +0000 (16:43 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 16 Nov 2010 21:43:49 +0000 (16:43 -0500)
Makefile

index af44ad4c0b14699703f28d31f847d5e9f5d984a3..7ba3e45222c39171449bdb4de282b5b4c4f7d0b2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ semi-clean : temp-clean
 
 clean : semi-clean
        rm -f drexel-thesis.pdf example.pdf example-draft.pdf \
-               drexel-thesis.cls drexel-thesis.tar.gz
+               drexel-thesis.cls drexel-thesis.tar.gz $(USEFUL_PACKAGES)
 
 dist : drexel-thesis.tar.gz
 
@@ -58,6 +58,9 @@ drexel-thesis.tar.gz : $(CLASS_FILES) $(EXAMPLE_FILES) $(EXTRA_FILES) \
        cp -p $(EXAMPLE_FILES) drexel-thesis/examples/
        cp -rp $(EXTRA_FILES) drexel-thesis/
        mkdir drexel-thesis/packages
-       cp -p $(USEFUL_PACKAGES) drexel-thesis/packages/
+       cp $(USEFUL_PACKAGES) drexel-thesis/packages/
        tar -chozf $@ drexel-thesis
        rm -rf drexel-thesis
+
+$(USEFUL_PACKAGES) : % :
+       cp $(shell kpsewhich $@) $@