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

Annotation of /trunk/doc/website/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (hide annotations)
Tue May 27 18:04:39 2008 UTC (16 years, 6 months ago) by jan
File size: 1489 byte(s)
Added clean target to Makefile.
Removed unneeded mk-chksums and NEWS.last.
Fixed switch.php to apply for gpg4kde.

1 khruskowski 2 # Build html from m4 macrofiles
2     # $Id$
3     #
4 jan 5 # (c)2005,2006,2008 by Intevation GmbH
5     # Authors:
6     # Sascha Wilde <[email protected]>
7     # Jan-Oliver Wagner <[email protected]>
8 khruskowski 2 #
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 jan 5 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4))
17 khruskowski 2 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 grep "svn+ssh://" .svn/entries | 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 jan 6
60     clean:
61     rm *.html

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26