fae719dabb04e3795b99335e2074a93a48c4e25d
[~andy/aweather-web] / mkfile
1 CT=/scratch/ct/ct
2 CFLAGS='--std=c99 -Wall'
3
4 all:V: index.cgi manual.inc images/aweather.ico images/logo.png
5
6 index.cgi: index.o html.o
7         gcc $CFLAGS -o $target $prereq
8
9 %.o: %.c html.h
10         gcc $CFLAGS -c -o $target $stem.c
11
12 %.c: %.ct
13         $CT -o $target $prereq 
14
15 manual.inc: ../aweather/docs/userguide.ad
16         asciidoc -s -a toc -a numbered -b xhtml11 -o- $prereq \
17         | awk -f toc.awk > $target
18
19 images/aweather.ico: ../aweather/data/icons/16x16/aweather.png
20         icotool -c $prereq -o $target
21
22 images/logo.png: ../aweather/data/icons/scalable/aweather.svg
23         rsvg -w 130 -h 130 $prereq $target
24
25 clean:V:
26         rm -f *.o *.cgi html.c
27
28 push:V:
29         user=spenceal
30         dest=/home/lug/htdocs/proj/aweather/
31         serv=lug.rose-hulman.edu
32         rsync -uavz .htaccess \
33                 $user@$serv:$dest
34         rsync -uavz --delete \
35                 --exclude '*~' \
36                 --exclude '.*' \
37                 index.cgi manual.inc images screens data  \
38                 $user@$serv:$dest