Author: dylan
Date: 2004-12-29 14:52:02 -0500 (Wed, 29 Dec 2004)
New Revision: 454
Modified:
trunk/web/Makefile
Log:
added make DELETE=1 upload.
Modified: trunk/web/Makefile
===================================================================
--- trunk/web/Makefile 2004-12-29 19:44:43 UTC (rev 453)
+++ trunk/web/Makefile 2004-12-29 19:52:02 UTC (rev 454)
@@ -11,7 +11,7 @@
PERL5LIB = lib
TTFLAGS = -I $T -P init -P config
FIXFLAGS = --noext
-RSYNCFLAGS = -vaz --exclude '.svn'
+RSYNCFLAGS = -vrzl --exclude '.svn'
TIDYFLAGS = -q
TARFLAGS = --exclude "*.tar.*" --exclude "*.svn*" -v
@@ -24,8 +24,8 @@
SFUSER = $(shell cat ~/.sfuser)
ifdef FAST
-TT_PATH = $(shell which $(TT))
-FIX_PATH = $(shell which $(FIX))
+TT_PATH := $(shell which $(TT))
+FIX_PATH := $(shell which $(FIX))
TT = pperl $(TT_PATH)
FIX = pperl $(FIX_PATH)
endif
@@ -34,18 +34,23 @@
RSYNCFLAGS += --dry-run
endif
+ifdef DELETE
+RSYNCFLAGS += --delete
+endif
+
export PERL5LIB
input := $(patsubst ./%,%,$(shell find -name '*.thtml'))
html := $(input:.thtml=.html)
-targets := $(html) haver.css
+targets := $(html) css/haver.css
build: $(targets)
upload:
$(RSYNC) $(RSYNCFLAGS) ./
$(SFUSER)@shell.sourceforge.net:/home/groups/h/ha/haver/htdocs/
-
+
+
clean:
rm -vf $(targets)