Mercurial > mxd2map
comparison website/buildhtml.mk @ 219:f13f51627f07
Adopted Makefiles to build documentation as well
author | Stephan Holl <stephan.holl@intevation.de> |
---|---|
date | Wed, 27 Jul 2011 09:16:00 +0200 |
parents | 011ec33e84b4 |
children | ec9d63ce691d |
comparison
equal
deleted
inserted
replaced
218:fb1ffd385115 | 219:f13f51627f07 |
---|---|
15 SUBDIRS = | 15 SUBDIRS = |
16 | 16 |
17 # Installation configuration | 17 # Installation configuration |
18 INSTALL_DIR = ./mxd2map-www | 18 INSTALL_DIR = ./mxd2map-www |
19 ADD_INST_TYPES = *.css *.php *.png .htaccess | 19 ADD_INST_TYPES = *.css *.php *.png .htaccess |
20 ADD_INST_DIRS = img | 20 ADD_INST_DIRS = img documentation |
21 | 21 |
22 CURDIR=$(shell pwd) | 22 CURDIR=$(shell pwd) |
23 | 23 |
24 .SUFFIXES: .html .htm4 | 24 .SUFFIXES: .html .htm4 |
25 | 25 |
29 all: $(TARGETS) images subdirs | 29 all: $(TARGETS) images subdirs |
30 | 30 |
31 $(TARGETS): template.m4 template_header.m4 \ | 31 $(TARGETS): template.m4 template_header.m4 \ |
32 header.m4 style.css | 32 header.m4 style.css |
33 | 33 |
34 documentation: | |
35 $(MAKE) -C ../doku online | |
36 | |
34 images: | 37 images: |
35 $(MAKE) -C ../doku/funktionsweise/ all | 38 $(MAKE) -C ../doku/funktionsweise/ all |
36 | 39 |
37 subdirs: $(SUBDIRS) | 40 subdirs: $(SUBDIRS) |
38 @for dir in $^ ; do \ | 41 @for dir in $^ ; do \ |
39 $(MAKE) -C $$dir SUBDIRS="" ; \ | 42 $(MAKE) -C $$dir SUBDIRS="" ; \ |
40 done | 43 done |
41 | 44 |
42 online: all | 45 online: all documentation |
43 echo "Going to put current contents online for www.mxd2mapp.org ..." | 46 echo "Going to put current contents online for www.mxd2mapp.org ..." |
44 rsync -urvPL --exclude='.hg' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \ | 47 rsync -urvPL --exclude='.hg' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \ |
45 sholl@wald.intevation.org:/mxd2map/htdocs/ | 48 sholl@wald.intevation.org:/mxd2map/htdocs/ |
46 | 49 |
47 install: all | 50 install: all |