# $Id$
# $Date$
HTML_FILES=index.html index.en.html download.html svn.html \
lizenz.html datenpflege.html
HTML_DIR=html
USER=$(shell grep "svn+ssh://" .svn/entries | sed -e "s/.*svn+ssh:\/\///g" | sed -e "s/@.*//g")
all:
mkdir -p $(HTML_DIR)
for f in $(HTML_FILES) ; do\
rm -f $(HTML_DIR)/$$f ;\
m4 -DNO_LINK_FOR=$$f \
-DCURRENT_DATE="`export LC_ALL=de_DE ; date`"\
--prefix-builtins\
$$f.m4 > $(HTML_DIR)/$$f ;\
done
mkdir -p $(HTML_DIR)/images
cp images/*.png $(HTML_DIR)/images
clean:
rm -rf $(HTML_DIR) frida-www.tar.gz
dist: clean all
( cd $(HTML_DIR) ; tar -czf ../frida-www.tar.gz . )
online: all
echo "Going to put current contents online for frida.intevation.org ..."
( cd $(HTML_DIR) ; rsync -urvP --exclude='.svn' . \
$(USER)@wald.intevation.org:/frida/htdocs/ )