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 8393f2159d1e1591a87bf52300db47db309aa18c..54f9c1e58b1163e3257c9a235761ad37e92d5d51 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 78954b063521ae3978689519ff3a4ee405c47013..cd70cb85625a1519841a9c62a51330b536c81ae9 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