X-Git-Url: http://pileus.org/git/?p=site;a=blobdiff_plain;f=makefile;h=1a9ec4f580866f7291c30e0ca280b1a27828599f;hp=1d13b6324409b1d79415477cfa592b76d5fd6f14;hb=76878fa89077a41ceccf7d12a8ea8c74ded3abb0;hpb=b5c9366d45b758dd882b34f8562e394df1521a15 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)