chiark / gitweb /
removing unauthorized hijack
[developers-reference.git] / Makefile
index 386e674d1e18d73d00aa5a96c10484d2b74e3b67..c3f5a8249dbc92b46a85aa4dfc40d532eadc3e62 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ PUBLISHDIR      := /org/www.debian.org/www/doc/manuals
 
 SOURCES                := $(wildcard *.sgml)
 
-LANGS           := fr ja
+LANGS           := fr
 TARGETS                := $(foreach fmt,html txt pdf,developers-reference.$(fmt)) \
                     $(foreach langext,$(LANGS), \
                       $(foreach fmt,html txt pdf,developers-reference.$(langext).$(fmt)))
@@ -26,12 +26,17 @@ install_file        := install -m 644 -p
 MAX_TEX_RECURSION := 5
 
 .PHONY:        all dropold
-all:    $(TARGETS)
+all:    $(TARGETS) dropold
+
+dropold:
+       -rm -rf developers-reference.ja.html
+
 
 .PHONY: validate
 validate:      $(addsuffix .validate,$(SOURCES))
 
 # hmmm, this rule may need to be revised/tested
+.PHONY: publish
 publish:       all
        [ -d $(PUBLISHDIR) ] || exit 1
        rm -f $(PUBLISHDIR)/$(MANUAL)/*.html
@@ -39,6 +44,7 @@ publish:      all
        $(install_file) developers-reference*.html/*.html developers-reference*pdf      \
           $(PUBLISHDIR)/$(MANUAL)
        ln -sf index.en.html $(PUBLISHDIR)/$(MANUAL)/index.html
+       ln -sf developers-reference.pdf $(PUBLISHDIR)/$(MANUAL)/developers-reference.en.pdf
 
 developers-reference.html:     developers-reference.sgml
        $(htmllink)