X-Git-Url: http://pileus.org/git/?p=~andy%2Faweather-web;a=blobdiff_plain;f=mkfile;h=4968365028bca3d26c305dc90a804b1d05b5496b;hp=317ad45b21c54c7d83182a1b416daaba31e938cb;hb=2d531e0bda5605c677220f525f23bcbaaabffdf7;hpb=8456e5d97f4bc5c066d3af9d4584b0843fe510ce diff --git a/mkfile b/mkfile index 317ad45..4968365 100644 --- a/mkfile +++ b/mkfile @@ -1,8 +1,7 @@ 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 @@ -13,16 +12,21 @@ index.cgi: index.o html.o %.c: %.ct $CT -o $target $prereq +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@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