# Makefile, used for the DDP manuals.sgml area
+export PATH:=../quick-reference/bin/:${PATH}
+
MANUAL := $(notdir $(shell pwd))
-PUBLISHDIR := /org/www.debian.org/www/doc/manuals
+PUBLISHDIR := /org/www.debian.org/www/doc/manuals
SOURCES := $(wildcard *.sgml)
-TARGETS := $(foreach fmt,html txt pdf,developers-reference.$(fmt)) \
- $(filter-out developers-reference.ja.pdf, \
- $(foreach langext,.ja .fr, \
- $(foreach fmt,html txt pdf,developers-reference$(langext).$(fmt))))
+TARGETS := $(foreach fmt,html txt ps pdf,developers-reference.$(fmt)) \
+ $(foreach langext,.fr .ja, \
+ $(foreach fmt,html txt ps pdf,developers-reference$(langext).$(fmt)))
# programs for creating output
DEBIANDOC2HTML := debiandoc2html -c
MAX_TEX_RECURSION := 5
-.PHONY: all
-all: $(TARGETS)
+.PHONY: all dropold
+all: $(TARGETS) dropold
+
+dropold:
+ -rm -rf developers-reference.ja.html
+
.PHONY: validate
validate: $(addsuffix .validate,$(SOURCES))
USERMAP := ../../ddp/CVSROOT/users
.PHONY: prepare
-prepare:
+prepare: ChangeLog
+ cvs ci -m "update for next release" ChangeLog
+
+.PHONY: ChangeLog
+ChangeLog:
@[ -f CVS/Root -a -f $(USERMAP) ] || \
- ( echo "silly rabbit, prepare is for Adam" 1>&2; exit 1 )
+ ( echo "usermap file '$(USERMAP)' not found" 1>&2; exit 1 )
cvs2cl -r --usermap $(USERMAP)
- cvs ci -m "update for next release" ChangeLog
.PHONY: clean
clean: