comparison website/buildhtml.mk @ 162:dd4bb5869f86

replaced mapWOC with MXD2map
author Stephan Holl <stephan.holl@intevation.de>
date Thu, 30 Jun 2011 13:23:24 +0200
parents 579b94f442a9
children 123ebb293f3a
comparison
equal deleted inserted replaced
161:3ac0968e26f3 162:dd4bb5869f86
13 # Build configuration 13 # Build configuration
14 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4)) 14 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4))
15 SUBDIRS = 15 SUBDIRS =
16 16
17 # Installation configuration 17 # Installation configuration
18 INSTALL_DIR = /tmp/mapwoc-www 18 INSTALL_DIR = ./mxd2map-www
19 ADD_INST_TYPES = *.css *.php *.png 19 ADD_INST_TYPES = *.css *.php *.png
20 ADD_INST_DIRS = img 20 ADD_INST_DIRS = img
21 21
22 CURDIR=$(shell pwd) 22 CURDIR=$(shell pwd)
23 23
35 @for dir in $^ ; do \ 35 @for dir in $^ ; do \
36 $(MAKE) -C $$dir SUBDIRS="" ; \ 36 $(MAKE) -C $$dir SUBDIRS="" ; \
37 done 37 done
38 38
39 online: all 39 online: all
40 echo "Going to put current contents online for www.mapwocp.org ..." 40 echo "Going to put current contents online for www.mxd2mapp.org ..."
41 rsync -urvP --exclude='.hg' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \ 41 rsync -urvP --exclude='.hg' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \
42 $(USER)@wald.intevation.org:/mapwoc/htdocs/ 42 $(USER)@wald.intevation.org:/mxd2map/htdocs/
43 43
44 install: all 44 install: all
45 mkdir -p $(INSTALL_DIR) ;\ 45 mkdir -p $(INSTALL_DIR) ;\
46 cp -uf $(TARGETS) $(INSTALL_DIR) ;\ 46 cp -uf $(TARGETS) $(INSTALL_DIR) ;\
47 cp -uf $(ADD_INST_TYPES) $(INSTALL_DIR) 47 cp -uf $(ADD_INST_TYPES) $(INSTALL_DIR)
48 cp -urf *$(ADD_INST_DIRS) $(INSTALL_DIR) 48 cp -urf *$(ADD_INST_DIRS) $(INSTALL_DIR)
49 find $(INSTALL_DIR) -name ".hg" | xargs rm -rf 49 find $(INSTALL_DIR) -name ".hg" | xargs rm -rf
50 50
51 tar: install 51 tar: install
52 echo $(CURDIR) 52 echo $(CURDIR)
53 ( cd $(INSTALL_DIR) ; tar -czv -f $(CURDIR)/www.mapwoc.org.tar.gz . ) 53 ( cd $(INSTALL_DIR) ; tar -czv -f $(CURDIR)/www.mxd2map.org.tar.gz . )
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)