Makefile: Make *.sty and *.tex precious so Make won't delete them
authorW. Trevor King <wking@tremily.us>
Tue, 21 Oct 2014 04:45:03 +0000 (21:45 -0700)
committerW. Trevor King <wking@tremily.us>
Tue, 21 Oct 2014 04:56:50 +0000 (21:56 -0700)
See [1] for the .PRECIOUS docs.

[1]: https://www.gnu.org/software/make/manual/html_node/Special-Targets.html#index-preserving-with-_002ePRECIOUS

Makefile

index c1298d67519144083cd1b4b97ef9751cfd0c7ad3..09da578f7d2a34acdc3156ed4507a4ba6ecb94dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,8 @@ USEFUL_PACKAGES = blindtext.sty draftmark.sty etextools.sty etoolbox.sty \
        floatrow.sty forloop.sty fr-subfig.sty lastpage.sty ltxnew.sty \
        pagerange.sty tocloft.sty xifthen.sty
 
+.PRECIOUS: %.sty %.tex
+
 drexel-thesis.tar.gz : $(CLASS_FILES) $(EXAMPLE_FILES) $(EXTRA_FILES) \
                $(USEFUL_PACKAGES)
        rm -f $@