OSDN Git Service

remove rcsid
[linuxjf/JF.git] / www / Makefile
1 #
2 # Makefile for contents in www
3 # $Id: Makefile,v 1.22 2008/10/05 11:13:22 mdk Exp $
4 #
5
6 include ../JF.conf
7
8 ifndef WORKDIR
9 WORKDIR         = /var/tmp/JF
10 endif
11
12 ADMDIR=../admin
13 VPATH=../:bin:../bin:../lists
14
15 .SUFFIXES: .html .xml .m4
16
17 CONTENTS = links.html index.html news.html copyright.html \
18         WhatisJF.html jf-ml.html jf-gofer-ml.html old-news.html \
19         notfound.html updated-docs.html onegai.html update.xml
20
21 .m4.html:
22         nkf -e $*.m4 > /tmp/$*.m4
23         m4 -P -D _WORKDIR=$(WORKDIR) /tmp/$*.m4 | nkf -w > $*.html
24         rm -f /tmp/$*.m4
25
26 .m4.xml:
27         $(NKF) -e $*.m4 > /tmp/$*.m4
28         m4 -P -D _WORKDIR=$(WORKDIR) /tmp/$*.m4 | $(NKF) -w > $*.xml
29         rm -f /tmp/$*.m4
30
31 all: contents
32         cd workshop; make
33         cd announcement; make
34
35 contents: $(CONTENTS)
36
37 *.html: jf_www.m4
38
39 index.html: jfindex.db categ_num.pl news.m4
40
41 updated-docs.html: jfindex.db news.m4
42
43 copyright.html: jfindex.db mknocomlist.pl
44
45 update.xml: jfindex.db news.m4 jf_www.m4
46
47 install: all
48         mkdir -p $(WWW_ROOT)
49         rsync -av \
50         --exclude='bin' \
51         --exclude='*.m4' \
52         --exclude='Makefile' \
53         --exclude='ChangeLog' \
54         * .htaccess $(WWW_ROOT)
55
56 clean:
57         cd workshop; make clean
58         cd announcement; make clean
59         for page in $(CONTENTS); do \
60           m4src=`basename $$page .html`.m4;\
61           if test -f $$m4src; then $(RM) $$page;fi;\
62         done
63         $(RM) update.xml
64 # EOF