annotate website/buildhtml.mk @ 251:6b80e46b8f38

Added picture symbol support to the converter.
author raimund renkert <raimund.renkert@intevation.de>
date Fri, 12 Aug 2011 16:08:57 +0200
parents ec9d63ce691d
children 1725558a9ce8
rev   line source
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
1 # Build html from m4 macrofiles
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
2 # $Id$
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
3 #
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
4 # (c)2005,2006 by Intevation GmbH
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
5 # Author(s): Sascha Wilde
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
6 #
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
7 # This is Free Software licensed under the GPL
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
8
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
9 # Preprocessor configuration
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
10 PP = m4
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
11 PPFLAGS = --prefix-builtins
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
12
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
13 # Build configuration
156
67d395ac5509 updated buildhtml to hg.
Emanuel Schuetze <emanuel@intevation.de>
parents: 155
diff changeset
14 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4))
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
15 SUBDIRS =
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
16
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
17 # Installation configuration
162
dd4bb5869f86 replaced mapWOC with MXD2map
Stephan Holl <stephan.holl@intevation.de>
parents: 159
diff changeset
18 INSTALL_DIR = ./mxd2map-www
195
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 162
diff changeset
19 ADD_INST_TYPES = *.css *.php *.png .htaccess
219
f13f51627f07 Adopted Makefiles to build documentation as well
Stephan Holl <stephan.holl@intevation.de>
parents: 212
diff changeset
20 ADD_INST_DIRS = img documentation
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
21
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
22 CURDIR=$(shell pwd)
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
23
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
24 .SUFFIXES: .html .htm4
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
25
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
26 .htm4.html:
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
27 $(PP) -DNO_LINK_FOR=$@ $(PPFLAGS) $< > $@
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
28
236
ec9d63ce691d Made build-chain for website and docs better
Stephan Holl <stephan.holl@intevation.de>
parents: 219
diff changeset
29 all: $(TARGETS) doc images subdirs
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
30
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
31 $(TARGETS): template.m4 template_header.m4 \
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
32 header.m4 style.css
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
33
236
ec9d63ce691d Made build-chain for website and docs better
Stephan Holl <stephan.holl@intevation.de>
parents: 219
diff changeset
34 doc:
ec9d63ce691d Made build-chain for website and docs better
Stephan Holl <stephan.holl@intevation.de>
parents: 219
diff changeset
35 $(MAKE) -C ../doku/ online
219
f13f51627f07 Adopted Makefiles to build documentation as well
Stephan Holl <stephan.holl@intevation.de>
parents: 212
diff changeset
36
211
bdf58d5b7d92 Added an english translation of the website.
Stephan Holl <stephan.holl@intevation.de>
parents: 195
diff changeset
37 images:
bdf58d5b7d92 Added an english translation of the website.
Stephan Holl <stephan.holl@intevation.de>
parents: 195
diff changeset
38 $(MAKE) -C ../doku/funktionsweise/ all
bdf58d5b7d92 Added an english translation of the website.
Stephan Holl <stephan.holl@intevation.de>
parents: 195
diff changeset
39
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
40 subdirs: $(SUBDIRS)
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
41 @for dir in $^ ; do \
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
42 $(MAKE) -C $$dir SUBDIRS="" ; \
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
43 done
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
44
236
ec9d63ce691d Made build-chain for website and docs better
Stephan Holl <stephan.holl@intevation.de>
parents: 219
diff changeset
45 online: all
ec9d63ce691d Made build-chain for website and docs better
Stephan Holl <stephan.holl@intevation.de>
parents: 219
diff changeset
46 echo "Going to put current contents online for www.mxd2map.org ..."
212
011ec33e84b4 * website/.htaccess, website/buildhtml.mk, website/switch.php:
Stephan Holl <stephan.holl@intevation.de>
parents: 211
diff changeset
47 rsync -urvPL --exclude='.hg' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \
195
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 162
diff changeset
48 sholl@wald.intevation.org:/mxd2map/htdocs/
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
49
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
50 install: all
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
51 mkdir -p $(INSTALL_DIR) ;\
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
52 cp -uf $(TARGETS) $(INSTALL_DIR) ;\
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
53 cp -uf $(ADD_INST_TYPES) $(INSTALL_DIR)
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
54 cp -urf *$(ADD_INST_DIRS) $(INSTALL_DIR)
156
67d395ac5509 updated buildhtml to hg.
Emanuel Schuetze <emanuel@intevation.de>
parents: 155
diff changeset
55 find $(INSTALL_DIR) -name ".hg" | xargs rm -rf
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
56
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
57 tar: install
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
58 echo $(CURDIR)
162
dd4bb5869f86 replaced mapWOC with MXD2map
Stephan Holl <stephan.holl@intevation.de>
parents: 159
diff changeset
59 ( cd $(INSTALL_DIR) ; tar -czv -f $(CURDIR)/www.mxd2map.org.tar.gz . )
195
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 162
diff changeset
60
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 162
diff changeset
61 clean:
211
bdf58d5b7d92 Added an english translation of the website.
Stephan Holl <stephan.holl@intevation.de>
parents: 195
diff changeset
62 $(MAKE) -C ../doku/funktionsweise/ clean
236
ec9d63ce691d Made build-chain for website and docs better
Stephan Holl <stephan.holl@intevation.de>
parents: 219
diff changeset
63 $(MAKE) -C ../doku/ clean
195
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 162
diff changeset
64 rm -f *.html
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 162
diff changeset
65
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 162
diff changeset
66 clean-en:
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 162
diff changeset
67 rm -f 404.html about.html contact.html development.html donate.html download.html impressum.html index.html license.html
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 162
diff changeset
68
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)