X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=developers-reference.git;a=blobdiff_plain;f=Makefile;h=d1619b6e75298b8accba04b655bbec255ccb377f;hp=23358b6516592e68df41cd12e5c5eb62a07677d4;hb=2244196e73c4ae419a78319dca98a13ecb1c222f;hpb=5a6dff1a6281dd71ad5f8abc41374bee92842755 diff --git a/Makefile b/Makefile index 23358b6..d1619b6 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Makefile, used for the DDP manuals.sgml area MANUAL := $(notdir $(shell pwd)) -PUBLISHDIR := ../../../public_html/manuals.html +PUBLISHDIR := /org/www.debian.org/www/doc/manuals SOURCES := $(wildcard *.sgml) @@ -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))" ;\ @@ -101,6 +103,11 @@ clean: rm -f version.ent rm -f `find . -name "*~" -o -name "*.bak"` rm -f *.validate + rm -f *~ *.bak .#* core + +.PHONY: distclean +distclean: clean + rm -f *.rej *.orig developers-reference$(SRCEXT).sgml: version.ent common.ent