# # 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. SRCS = maint-guide.sgml # $(wildcard *.sgml) LANG = es LANGSRCS = $(patsubst %.sgml, %.es.sgml, $(SRCS)) #LANGSRCS = maint-guide.es.sgml # this can and will be overriden by a higher level makefile #PUBLISHDIR := html/ all: html txt ps #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/ validate: nsgmls -ges -wall maint-guide.sgml clean distclean: rm -f maint-guide*.$(LANG).{txt,ps,dvi,pdf,info*,log,tex,aux,toc,sasp*} *~ rm -rf maint-guide*.$(LANG).html html maint-guide.$(LANG).html/index.html: $(LANGSRCS) debiandoc2html -l $(LANG) $(LANGSRCS) txt maint-guide.$(LANG).txt: $(LANGSRCS) debiandoc2text -l $(LANG) $(LANGSRCS) ps maint-guide.$(LANG).ps: $(LANGSRCS) debiandoc2latexps -l $(LANG) $(LANGSRCS) .PHONY: all publish clean distclean validate