]> Pileus Git - ~andy/aweather-web/blob - mkfile
Split news into news/oldnews
[~andy/aweather-web] / mkfile
1 CT=/scratch/ct/ct
2 CFLAGS='--std=c99 -Wall'
3
4 PKG_FLAGS=`{pkg-config --cflags glib-2.0}
5 PKG_LIBS=`{pkg-config --libs glib-2.0}
6
7 index.cgi: index.o html.o
8         gcc $CFLAGS -o $target $prereq $PKG_LIBS
9
10 %.o: %.c
11         gcc $CFLAGS $PKG_FLAGS -c -o $target $prereq
12
13 %.c: %.ct
14         $CT -o $target $prereq 
15
16 clean:V:
17         rm -f *.o *.cgi html.c
18
19 push:V:
20         user=spenceal
21         dest=/home/lug/htdocs/proj/aweather/
22         rsync -uavz .htaccess \
23                 $user@lug.rose-hulman.edu:$dest
24         rsync -uavz --delete \
25                 --exclude '*~' \
26                 --exclude '.*' \
27                 index.cgi images screens data \
28                 $user@lug.rose-hulman.edu:$dest