chiark / gitweb /
Add build-dependency on w3m.
[developers-reference.git] / Makefile
index 2d70910d5af8abde15cec83531e8161a54a4a5ba..8b3d3582e9879a1f46af67ce12daef92b22b8fd9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,8 @@ TARGETS               := $(foreach fmt,$(FORMATS),developers-reference.$(fmt)) \
                   $(foreach lng,$(LANGS), \
                       $(foreach fmt,$(FORMATS), \
                           $(lng)/developers-reference.$(fmt)))
+# list of targets, that currently cannot build
+BLACKLIST      := ja/developers-reference.pdf
 
 # hopefully overwritten by caller, e.g. debian/rules
 VERSION=unknown
@@ -18,9 +20,8 @@ PUBDATE=unknown
 # programs for creating output
 XP=xsltproc --nonet --novalid --xinclude
 XL=xmllint --nonet --noout --postvalid --xinclude
-# dblatex 0.2.8 has some problems (e.g. #465221), but we can
-# live with that for now (but: Japanese PDF seems to need
-# non-free cyberbit font.)
+# dblatex 0.2.8 has some problems (e.g. #465221 and Japanese does
+# not build)
 # Alternatives:
 # - docbook2pdf (seems to die on UTF-8, #431085); and
 # - fop is currently in contrib, but can go to main, see #366783
@@ -38,7 +39,7 @@ DBK2HTML=$(PWD)/html.xsl
 DBK2HTML1=$(PWD)/txt.xsl
 
 .PHONY:        all
-all:    $(TARGETS)
+all:    $(filter-out $(BLACKLIST), $(TARGETS))
 
 .PHONY: validate
 validate:                      $(SOURCES)
@@ -101,7 +102,7 @@ endif
 .PHONY: clean
 clean:
        rm -f *.fo *.html *.pdf *.txt
-       rm -rf $(LANGS)
+       for L in $(LANGS); do rm -rf `basename ./"$$L"/`; done
        rm -f version.ent
        rm -f `find . -name "*~" -o -name "*.bak"`
        rm -f *~ *.bak .#* core