X-Git-Url: http://pileus.org/git/?p=~andy%2Faweather-web;a=blobdiff_plain;f=mkfile;h=fae719dabb04e3795b99335e2074a93a48c4e25d;hp=dc180674b4d5516d9d25bd4cf988a7ee1d967efb;hb=1d143a997e82c28dbe58fe34dcb723826041fcc6;hpb=809700c0054c4d0afc399e1a58e51f3afedee14a diff --git a/mkfile b/mkfile index dc18067..fae719d 100644 --- a/mkfile +++ b/mkfile @@ -1,25 +1,38 @@ CT=/scratch/ct/ct CFLAGS='--std=c99 -Wall' +all:V: index.cgi manual.inc images/aweather.ico images/logo.png + index.cgi: index.o html.o - gcc $CFLAGS -o $target $prereq $PKG_LIBS + gcc $CFLAGS -o $target $prereq %.o: %.c html.h - gcc $CFLAGS $PKG_FLAGS -c -o $target $stem.c + gcc $CFLAGS -c -o $target $stem.c %.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 + +images/aweather.ico: ../aweather/data/icons/16x16/aweather.png + icotool -c $prereq -o $target + +images/logo.png: ../aweather/data/icons/scalable/aweather.svg + rsvg -w 130 -h 130 $prereq $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