X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=latex_mk%2Ftest%2Fhyperref%2FMakefile;h=60eb3d90a2dd2a5a23cb42c77a48a4edcea85c8f;hb=304f12a38e1b83b3295c5c11d90e889ccc825c78;hp=7c7ba782dfce50a1c96841c480fbbc31c283cb46;hpb=fdfe12a7e234face5ff58b9fadc5360755347dba;p=makefiles.git diff --git a/latex_mk/test/hyperref/Makefile b/latex_mk/test/hyperref/Makefile index 7c7ba78..60eb3d9 100644 --- a/latex_mk/test/hyperref/Makefile +++ b/latex_mk/test/hyperref/Makefile @@ -1,17 +1,40 @@ TEXTARGETS := hyperref.pdf +CMP := cmp -s +DIFF := diff +PATCH := patch + .PHONY: all update rebase clean distclean -all: $(TEXTARGETS) +all: + @$(MAKE) -s hyperref_1.pdf + @$(ECHO) '--------------------' + @$(MAKE) -s hyperref_2.pdf + +hyperref_1.pdf: rebase + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s hyperref.pdf + @$(CP) -v hyperref.pdf $@ + +hyperref_2.pdf: update + @$(ECHO) '---------- $@: $^ ----------' + @$(MAKE) -s hyperref.pdf + @$(CP) -v hyperref.pdf $@ + +update: hyperref.tex.6th.patch + @$(PATCH) <$< -update: - $(CP) hyperref.tex.6th hyperref.tex +hyperref.tex.6th.patch: + @$(MAKE) -s rebase + @$(DIFF) -u hyperref.tex hyperref.tex.6th >$@ || exit 0 rebase: - $(CP) hyperref.tex.5th hyperref.tex + $(CMP) hyperref.tex.5th hyperref.tex || $(CP) -v hyperref.tex.5th hyperref.tex include latex.mk clean: tex-clean -distclean: tex-distclean +distclean: rebase tex-distclean + $(RM) *.patch + $(RM) hyperref_*.pdf