Add push make rule
authorAndy Spencer <andy753421@gmail.com>
Mon, 7 Jan 2013 08:28:26 +0000 (08:28 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 7 Jan 2013 08:28:26 +0000 (08:28 +0000)
makefile

index 1d13b63..1a9ec4f 100644 (file)
--- 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)