]> Pileus Git - ~andy/aweather-web/blobdiff - mkfile
Bump copyright date
[~andy/aweather-web] / mkfile
diff --git a/mkfile b/mkfile
index a0db4a4c65d0c6e0a58f5e71b5d1e3da9646b1cd..dea4b2d9b97de7e7b5a24652e104c17491badfe7 100644 (file)
--- a/mkfile
+++ b/mkfile
@@ -1,17 +1,38 @@
-CT=/scratch/ct/ct
+CT=/home/andy/src/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 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
-       gcc $CFLAGS $PKG_FLAGS -c -o $target $prereq
+%.o: %.c html.h
+       gcc $CFLAGS -c -o $target $stem.c
 
 %.c: %.ct
        $CT -o $target $prereq 
 
-clean:
+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-convert -w 130 -h 130 -o $target $prereq 
+
+clean:V:
        rm -f *.o *.cgi html.c
+
+push:V:
+       user=andy
+       dest=/home/pileus/htdocs/aweather/
+       serv=pileus.org
+       rsync -uavz .htaccess \
+               $user@$serv:$dest
+       rsync -uavz --delete \
+               --exclude '*~' \
+               --exclude '.*' \
+               index.cgi manual.inc images screens data  \
+               $user@$serv:$dest