X-Git-Url: http://pileus.org/git/?p=~andy%2Faweather-web;a=blobdiff_plain;f=mkfile;h=83df9326cb0b1b3ea52bfe5228ffc067456e8dfa;hp=1f156888129d7a0a378b6f593599db3ae89bf950;hb=3934139d14007a885a99e2a2517446998df3dac0;hpb=e9e756464f578c44e83595a6b96095455553f67a diff --git a/mkfile b/mkfile index 1f15688..83df932 100644 --- a/mkfile +++ b/mkfile @@ -1,28 +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 +manual.inc: ../docs/manual.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@lug.rose-hulman.edu:$dest + $user@$serv:$dest rsync -uavz --delete \ --exclude '*~' \ --exclude '.*' \ - index.cgi images screens data \ - $user@lug.rose-hulman.edu:$dest + index.cgi manual.inc images screens data \ + $user@$serv:$dest