From: Andy Spencer Date: Mon, 7 Jan 2013 08:28:26 +0000 (+0000) Subject: Add push make rule X-Git-Url: http://pileus.org/git/?p=site;a=commitdiff_plain;h=76878fa89077a41ceccf7d12a8ea8c74ded3abb0 Add push make rule --- diff --git a/makefile b/makefile index 1d13b63..1a9ec4f 100644 --- a/makefile +++ b/makefile @@ -18,6 +18,15 @@ test: $(PROG) clean: rm -f src/*.o src/html.c $(PROG) +push: $(PROG) + SITE="pileus@pileus.org:~/src/site/"; \ + PAGES="pileus@pileus.org:~/src/pages/"; \ + rsync -uavz .htaccess .gitignore $$SITE; \ + rsync -uavz --delete --exclude '*~' --exclude '.*' \ + pileus.cgi src theme $$SITE; \ + rsync -uavz --delete --exclude '*~' --exclude '.*' \ + pages/ $$PAGES/; + # Rules $(PROG): src/main.o src/html.o $(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS)