X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=developers-reference.git;a=blobdiff_plain;f=Makefile;h=ca40661e7bbcdbaa2838aff94089f76833804561;hp=eb377d410e894194bc9c28672b10cf6abe3e227b;hb=00a11ce4441243d9e587e42123f49af55867b740;hpb=de0041e1a2fd9dcf9313587acfc46a520a01f291 diff --git a/Makefile b/Makefile index eb377d4..ca40661 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,8 @@ publish: all developers-reference.html: developers-reference.sgml $(DEBIANDOC2HTML) -l C $< +developers-reference.html/*: developers-reference.html + developers-reference.%.html: developers-reference.%.sgml $(DEBIANDOC2HTML) -l $* $< @@ -55,14 +57,14 @@ developers-reference.%.tex: developers-reference.%.sgml %.pdf: %.tex # note that I have seen bi-stable .aux files, thus we check two levels deep -cp -pf prior.aux pprior.aux 2>/dev/null - -cp -pf $(basename $<).aux prior.aux 2>/dev/null + -cp -pf $*.aux prior.aux 2>/dev/null # fail if we don't have pdflatex correctly installed kpsewhich pdflatex.fmt >/dev/null # due to a bug in debiandoc2latex2e output, this might fail -pdflatex '\nonstopmode\input{$<}' >/dev/null # see $(@:.pdf=.log) for details @set -e ;\ - if ! cmp $(basename $<).aux prior.aux 2>/dev/null && \ - ! cmp $(basename $<).aux pprior.aux 2>/dev/null; then \ + if ! cmp $*.aux prior.aux 2>/dev/null && \ + ! cmp $*.aux pprior.aux 2>/dev/null; then \ if expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION) >/dev/null;\ then \ echo "remaking $@ (take $(MAKELEVEL))" ;\