comparison website/buildhtml.mk @ 159:579b94f442a9

moved to subfolder website
author Stephan Holl <stephan.holl@intevation.de>
date Thu, 30 Jun 2011 12:30:33 +0200
parents buildhtml.mk@67d395ac5509
children dd4bb5869f86
comparison
equal deleted inserted replaced
158:c4fa8e2cb5f7 159:579b94f442a9
1 # Build html from m4 macrofiles
2 # $Id$
3 #
4 # (c)2005,2006 by Intevation GmbH
5 # Author(s): Sascha Wilde
6 #
7 # This is Free Software licensed under the GPL
8
9 # Preprocessor configuration
10 PP = m4
11 PPFLAGS = --prefix-builtins
12
13 # Build configuration
14 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4))
15 SUBDIRS =
16
17 # Installation configuration
18 INSTALL_DIR = /tmp/mapwoc-www
19 ADD_INST_TYPES = *.css *.php *.png
20 ADD_INST_DIRS = img
21
22 CURDIR=$(shell pwd)
23
24 .SUFFIXES: .html .htm4
25
26 .htm4.html:
27 $(PP) -DNO_LINK_FOR=$@ $(PPFLAGS) $< > $@
28
29 all: $(TARGETS) subdirs
30
31 $(TARGETS): template.m4 template_header.m4 \
32 header.m4 style.css
33
34 subdirs: $(SUBDIRS)
35 @for dir in $^ ; do \
36 $(MAKE) -C $$dir SUBDIRS="" ; \
37 done
38
39 online: all
40 echo "Going to put current contents online for www.mapwocp.org ..."
41 rsync -urvP --exclude='.hg' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \
42 $(USER)@wald.intevation.org:/mapwoc/htdocs/
43
44 install: all
45 mkdir -p $(INSTALL_DIR) ;\
46 cp -uf $(TARGETS) $(INSTALL_DIR) ;\
47 cp -uf $(ADD_INST_TYPES) $(INSTALL_DIR)
48 cp -urf *$(ADD_INST_DIRS) $(INSTALL_DIR)
49 find $(INSTALL_DIR) -name ".hg" | xargs rm -rf
50
51 tar: install
52 echo $(CURDIR)
53 ( cd $(INSTALL_DIR) ; tar -czv -f $(CURDIR)/www.mapwoc.org.tar.gz . )
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)