1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#
# Makefile for the Debian New Maintainers' Guide
#
# Should work both for a manual in the Debian Documentation Project
# manuals.sgml tree, and for maint-guide package build.
# this can and will be overriden by a higher level makefile
PUBLISHDIR := ../../../public_html/manuals.html
all: html txt ps
# generating HTML
html: $(patsubst %.sgml,%.html/index.html,$(wildcard *.sgml))
maint-guide.html/index.html: maint-guide.sgml
debiandoc2html $<
maint-guide.%.html/index.html: maint-guide.%.sgml
debiandoc2html -l $* $<
# generating plain text
txt text: $(patsubst %.sgml,%.txt,$(wildcard *.sgml))
maint-guide.txt: maint-guide.sgml
debiandoc2text $<
maint-guide.%.txt: maint-guide.%.sgml
debiandoc2text -l $* $<
# generating PostScript
ps: maint-guide.ps
maint-guide.ps: maint-guide.sgml
debiandoc2latexps $<
# publishing to the DDP web pages
publish: maint-guide.html/index.html
test -d $(PUBLISHDIR)/maint-guide || install -d -m 755 $(PUBLISHDIR)/maint-guide
rm -f $(PUBLISHDIR)/maint-guide/*.html
install -p -m 644 maint-guide.html/*.html $(PUBLISHDIR)/maint-guide/
# validating SGML
validate:
set -x; for i in $(wildcard *.sgml); do nsgmls -ges -wall $$i; done
# cleaning up
clean distclean:
rm -f maint-guide*.{txt,ps,dvi,pdf,info*,log,tex,aux,toc,sasp*} *~
rm -rf maint-guide*.html
.PHONY: all publish clean distclean validate
|