X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=latex_mk%2Ftest%2Ftoc%2FMakefile;h=dac8be36134dcef83db241267810384f45e19102;hb=5cf06a94624e9eb77d35557ece89ad36df1d0e3f;hp=2862b17342318f5486fd70525a74c0e66e13f5f9;hpb=c9f614ba4858cd6456e1bac89350d09f12b7a183;p=makefiles.git diff --git a/latex_mk/test/toc/Makefile b/latex_mk/test/toc/Makefile deleted file mode 120000 index 2862b17..0000000 --- a/latex_mk/test/toc/Makefile +++ /dev/null @@ -1 +0,0 @@ -../Makefile.template \ No newline at end of file diff --git a/latex_mk/test/toc/Makefile b/latex_mk/test/toc/Makefile new file mode 100644 index 0000000..dac8be3 --- /dev/null +++ b/latex_mk/test/toc/Makefile @@ -0,0 +1,42 @@ +TEXTARGETS := toc.pdf + +CMP := cmp -s +DIFF := diff +PATCH := patch + +.PHONY: all update rebase clean distclean + +$(TEXTARGETS): + +all: + @$(MAKE) -s toc_1.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s toc_2.pdf + +toc_1.pdf: rebase + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s toc.pdf + @$(CP) -v toc.pdf $@ + +toc_2.pdf: update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s toc.pdf + @$(CP) -v toc.pdf $@ + +update: toc.tex.6th.patch + @$(PATCH) <$< + +toc.tex.6th.patch: + @$(MAKE) -s rebase + @$(DIFF) -u toc.tex toc.tex.6th >$@ || exit 0 + +rebase: + $(CMP) toc.tex.5th toc.tex || $(CP) -v toc.tex.5th toc.tex + +include latex.mk + +clean: tex-clean + +distclean: rebase tex-distclean + $(RM) *.patch + $(RM) toc_*.pdf