[Pkg-jed-commit] r46 - trunk/www
Rafael Laboissiere
rafael@costa.debian.org
Thu, 09 Jun 2005 08:56:37 +0000
Author: rafael
Date: 2005-06-09 08:56:37 +0000 (Thu, 09 Jun 2005)
New Revision: 46
Modified:
trunk/www/Makefile
Log:
* Made separate target for tarball (depends on the www installed
files)
* Rule for building DJG-Guidelines.html from DJG-Guidelines.txt
* Added "clean" target
Modified: trunk/www/Makefile
===================================================================
--- trunk/www/Makefile 2005-06-09 08:55:06 UTC (rev 45)
+++ trunk/www/Makefile 2005-06-09 08:56:37 UTC (rev 46)
@@ -10,17 +10,14 @@
GROUP = pkg-jed
HOST = alioth.debian.org
DIR = /org/alioth.debian.org/chroot/home/groups/pkg-jed/htdocs/
-INSTALLFILES = index.html DJG-Guidelines.txt earth.png djg.css Makefile
+INSTALLFILES = index.html DJG-Guidelines.txt DJG-Guidelines.html \
+ earth.png djg.css guidelines.css Makefile
TARBALL = tmp.tgz
-install: svn-ci index.html
- @echo -n "Making tarball... "
- @tar cfz $(TARBALL) $(INSTALLFILES)
- @echo done
+install: svn-ci $(TARBALL)
@echo -n "Uploading tarball to web site... "
@scp -q $(TARBALL) $(USER)@$(HOST):$(DIR)
@echo done
- @rm -f $(TARBALL)
@echo -n "Installing remote tarball... "
@ssh $(USER)@$(HOST) 'cd $(DIR); tar xfz $(TARBALL)'
@echo done
@@ -32,11 +29,19 @@
@ssh $(USER)@$(HOST) rm -f $(DIR)$(TARBALL)
@echo done
-%: %.in
- eperl $< > $@
+$(TARBALL): $(INSTALLFILES)
+ @echo -n "Making tarball... "
+ @tar cfz $(TARBALL) $(INSTALLFILES)
+ @echo done
+%.html: %.txt
+ rest2html --no-toc-backlinks --stylesheet=guidelines.css $< $@
+
svn-ci:
- svn ci $(INSTALLFILES)
+ svn ci
svn up
+clean:
+ rm -f DJG-Guidelines.html $(TARBALL)
+
.PHONY: install svn-ci clean