chiark / gitweb /
Create a publish target in the Makefile to reenable builds on the
authorhertzog <hertzog@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Thu, 26 Jun 2008 14:49:33 +0000 (14:49 +0000)
committerhertzog <hertzog@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Thu, 26 Jun 2008 14:49:33 +0000 (14:49 +0000)
website.

git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@5248 313b444b-1b9f-4f58-a734-7bb04f332e8d

Makefile
debian/changelog

index 8393f21..54f9c1e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,19 @@ validate:                    $(SOURCES)
 %/validate:                    $(addprefix %/,$(SOURCES))
        cd $(@D) && $(XL) index.dbk
 
+# This rule controls the build and installation on the website
+# Logs are here: http://www-master.debian.org/build-logs/ddp/
+.PHONY: publish
+publish:       all
+       [ -d $(PUBLISHDIR) ] || exit 1
+       install -d -m 755 $(PUBLISHDIR)/developers-reference
+       rm -f $(PUBLISHDIR)/developers-reference/*.html
+       rm -f en && ln -sf . en
+       $(foreach format,$(FORMATS),$(foreach lang,en $(LANGS),for file in $(lang)/*.$(format); do if [ -e "$$file" ]; then cp $$file $(PUBLISHDIR)/developers-reference/$$(basename $$file .$(format)).$(lang).$(format); fi; done;))
+       ln -sf index.en.html $(PUBLISHDIR)/developers-reference/index.html
+       ln -sf developers-reference.en.pdf $(PUBLISHDIR)/developers-reference/developers-reference.pdf
+       ln -sf developers-reference.en.txt $(PUBLISHDIR)/developers-reference/developers-reference.txt
+
 .PHONY: developers-reference.html %/developers-reference.html
 developers-reference.html:     $(CURDIR)/index.html
 %/developers-reference.html:   $(addprefix %/,index.html)
index 78954b0..cd70cb8 100644 (file)
@@ -1,6 +1,8 @@
 developers-reference (3.4.1) UNRELEASED; urgency=low
 
-  * NOT RELEASED YET
+  [ Raphael Hertzog ]
+  * Create a publish target in the Makefile to reenable builds on the
+    website.
 
  -- Lucas Nussbaum <lucas@lucas-nussbaum.net>  Fri, 13 Jun 2008 15:45:20 +0200