Generalized: &a_href_cz -> &a_href_cc
[www.jankratochvil.net.git] / Makefile.am
1 # $Id$
2 # automake source for the toplevel Makefile 
3 # Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 include $(top_srcdir)/Makefile-head.am
20
21 AUTOMAKE_OPTIONS=foreign
22 SUBDIRS=macros My resume etmms project
23 ## to automatically rebuild aclocal.m4 if any of the macros in
24 ## `macros/' change
25 @MAINT@include macros/macros.dep
26 @MAINT@macros/macros.dep: macros/Makefile.am
27 @MAINT@ cd macros && $(MAKE) macros.dep
28
29 EXTRA_DIST+= \
30                 INSTALL \
31                 config.rpath \
32                 mkinstalldirs \
33                 Makefile-head.am \
34                 autogen.pl \
35                 .vimrc \
36                 ChangeLog \
37                 dia-w.sh.in
38
39 MAINTAINERCLEANFILES+= \
40                 ChangeLog
41
42 CLEANFILES+= \
43                 ChangeLog.bak \
44                 dia-w.sh
45
46 if MAINTAINER_MODE
47 ChangeLog:
48         cvs2cl.pl --usermap cvs2cl-usermap --window 3600 --separate-header --no-wrap --file $@ .
49
50 else
51 ChangeLog:
52         touch $@
53
54 endif
55
56 CLEANFILES+=httpd.conf
57 EXTRA_DIST+=httpd.conf.pl
58
59 httpd.conf: httpd.conf.pl Makefile project/Makefile
60         perl -I$$PWD ./$< >$@
61
62 TESTS+=html-test
63
64 html-test:
65         ./$@.pl
66
67 EXTRA_DIST+= \
68                 WebConfig.pm \
69                 robots.txt \
70                 html-test.pl
71
72 MODPERL_PM+= \
73                 Index.pm \
74                 Contact.pm \
75                 have_js.pm \
76                 Redirect.pm \
77                 Mailman.pm
78