summaryrefslogtreecommitdiffabout
path: root/Makefile.am
blob: 105b377e24037463c9ff3ac55606e3dfdee3dfc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
EXTRA_DIST = \
	 $(addprefix htdocs/,.htaccess favicon.ico index.chtml simple.chtml sources.chtml style.css view.chtml) \
	  $(addprefix htdocs/ancestry/,.htaccess layout.chtml page.chtml sources.chtml) \
	  $(addprefix htdocs/examples/,calendar.chtml) \
	  $(addprefix htdocs/exceptions/,index.chtml preprocess.chtml compile.chtml runtime.chtml) \
	   $(addprefix htdocs/exceptions/development/,.htaccess .scrc compile.chtml compile.html preprocess.chtml runtime.chtml erroneous.h) \
	   $(addprefix htdocs/exceptions/production/,.htaccess .scrc compile.chtml compile.html preprocess.chtml runtime.chtml erroneous.h) \
          $(addprefix htdocs/handlers/,.htaccess exception_dev exception_prod) \
        autogen.sh \
	NEWS NEWS.xml NEWS.xsl

DISTCHECK_CONFIGURE_FLAGS=--enable-distcheck

all-local: NEWS sitecode restart restart-apache
distclean-local:
	rm -rf config.sitecing \
		logs fastcgi-bin run cache

NEWS: NEWS.xsl NEWS.xml
	${XSLTPROC} -o $@ NEWS.xsl NEWS.xml

sitecode: conf/sitecing.conf include/acconfig.h
	${SHELL} bin/build
restart: conf/sitecing.conf conf/dudki.conf
if !DISTCHECKING
if HAVE_DUDKI
	sudo ${SHELL} -c "@DUDKI@ -k @dudki_id@ ; sleep 3 ; @DUDKI@ -r"
else
	kill `cat run/sitecing.pid` ; sleep 3 ; ${SHELL} bin/run
endif
endif !DISTCHECKING

restart-apache: conf/httpd.conf
if !DISTCHECKING
	@APACHE_RESTART_CMD@
endif !DISTCHECKING