]> Pileus Git - ~andy/aweather-web/blob - mkfile
Add web/pkg repo links, and other stuff..
[~andy/aweather-web] / mkfile
1 CT=/scratch/ct/ct
2 CFLAGS='--std=c99 -Wall'
3
4 all:V: index.cgi manual.inc
5
6 index.cgi: index.o html.o
7         gcc $CFLAGS -o $target $prereq $PKG_LIBS
8
9 %.o: %.c html.h
10         gcc $CFLAGS $PKG_FLAGS -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 clean:V:
20         rm -f *.o *.cgi html.c
21
22 push:V:
23         user=spenceal
24         dest=/home/lug/htdocs/proj/aweather/
25         serv=lug.rose-hulman.edu
26         rsync -uavz .htaccess \
27                 $user@$serv:$dest
28         rsync -uavz --delete \
29                 --exclude '*~' \
30                 --exclude '.*' \
31                 index.cgi manual.inc images screens data  \
32                 $user@$serv:$dest