X-Git-Url: http://pileus.org/git/?p=~andy%2Faweather-web;a=blobdiff_plain;f=mkfile;h=4968365028bca3d26c305dc90a804b1d05b5496b;hp=a0db4a4c65d0c6e0a58f5e71b5d1e3da9646b1cd;hb=39325b047ef57a150cc445a8349e4fe9c5318530;hpb=49bfe2490d94cf946b9fd521c69ee1ea46a3ee67 diff --git a/mkfile b/mkfile index a0db4a4..4968365 100644 --- a/mkfile +++ b/mkfile @@ -1,17 +1,32 @@ CT=/scratch/ct/ct CFLAGS='--std=c99 -Wall' -PKG_FLAGS=`{pkg-config --cflags glib-2.0} -PKG_LIBS=`{pkg-config --libs glib-2.0} +all:V: index.cgi manual.inc index.cgi: index.o html.o gcc $CFLAGS -o $target $prereq $PKG_LIBS -%.o: %.c - gcc $CFLAGS $PKG_FLAGS -c -o $target $prereq +%.o: %.c html.h + gcc $CFLAGS $PKG_FLAGS -c -o $target $stem.c %.c: %.ct $CT -o $target $prereq -clean: +manual.inc: ../aweather/docs/userguide.ad + asciidoc -s -a toc -a numbered -b xhtml11 -o- $prereq \ + | awk -f toc.awk > $target + +clean:V: rm -f *.o *.cgi html.c + +push:V: + user=spenceal + dest=/home/lug/htdocs/proj/aweather/ + serv=lug.rose-hulman.edu + rsync -uavz .htaccess \ + $user@$serv:$dest + rsync -uavz --delete \ + --exclude '*~' \ + --exclude '.*' \ + index.cgi manual.inc images screens data \ + $user@$serv:$dest