chiark / gitweb /
doc-base file includes French and Japanese files
[developers-reference.git] / Makefile
index 23358b6516592e68df41cd12e5c5eb62a07677d4..d1619b6e75298b8accba04b655bbec255ccb377f 100644 (file)
--- 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