/[gpg4kde]/trunk/doc/website/Makefile
ViewVC logotype

Contents of /trunk/doc/website/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16 - (show annotations)
Mon Feb 4 13:44:17 2019 UTC (5 years, 10 months ago) by bernhard
File size: 1483 byte(s)
Improve website/Makefile to get svn USER info

 * Using an `svn info` command which shall work with modern svn versions.



1 # Build html from m4 macrofiles
2 # $Id$
3 #
4 # (c)2005,2006,2008 by Intevation GmbH
5 # Authors:
6 # Sascha Wilde <[email protected]>
7 # Jan-Oliver Wagner <[email protected]>
8 #
9 # This is Free Software licensed under the GPL
10
11 # Preprocessor configuration
12 PP = m4
13 PPFLAGS = --prefix-builtins
14
15 # Build configuration
16 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4))
17 SUBDIRS =
18
19 # Installation configuration
20 INSTALL_DIR = /tmp/gpg4kde-www
21 ADD_INST_TYPES = *.css *.ico *.php
22 ADD_INST_DIRS = pix
23
24 USER=$(shell svn info --show-item url | sed -e "s/.*svn+ssh:\/\///g" | sed -e "s/@.*//g" | head -1)
25
26 CURDIR=$(shell pwd)
27
28 .SUFFIXES: .html .htm4
29
30 .htm4.html:
31 $(PP) $(PPFLAGS) $< > $@
32
33 all: $(TARGETS) subdirs
34
35 $(TARGETS): template.m4 template_header.m4 \
36 template_link_boxes_de.m4 template_link_boxes_en.m4 \
37 gpg4kde.css
38
39 subdirs: $(SUBDIRS)
40 @for dir in $^ ; do \
41 $(MAKE) -C $$dir SUBDIRS="" ; \
42 done
43
44 online: all
45 echo "Going to put current contents online for www.gpg4kde.org ..."
46 rsync -urvP --exclude='.svn' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \
47 $(USER)@wald.intevation.org:/gpg4kde/htdocs/
48
49 install: all
50 mkdir -p $(INSTALL_DIR) ;\
51 cp -uf $(TARGETS) $(INSTALL_DIR) ;\
52 cp -uf $(ADD_INST_TYPES) $(INSTALL_DIR)
53 cp -urf *$(ADD_INST_DIRS) $(INSTALL_DIR)
54 find $(INSTALL_DIR) -name ".svn" | xargs rm -rf
55
56 tar: install
57 echo $(CURDIR)
58 ( cd $(INSTALL_DIR) ; tar -czv -f $(CURDIR)/www.gpg4kde.org.tar.gz . )
59
60 clean:
61 rm *.html

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26