]> Pileus Git - site/commitdiff
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 1d13b6324409b1d79415477cfa592b76d5fd6f14..1a9ec4f580866f7291c30e0ca280b1a27828599f 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)