Remove GNOME Navbar
[conservancy:voting.git] / rules.common
1 # Site-structural variables
2
3 SITE = $(notdir $(subst $(shell echo $(urlpath) | sed "s,/$$,,"),,$(CURDIR)))
4 pagedir = $(prefix)/$(SITE)/$(urlpath)
5
6
7 # Boring make stuff
8
9 BUILT_SOURCES = $(page_SCRIPTS)
10 CLEANFILES = $(BUILT_SOURCES)
11
12
13 # Interesting target stuff
14
15 %.html %.shtml: %.wml $(top_srcdir)/include/add-header.xsl
16         @xsltproc -html --stringparam root $(HTTP_PREFIX)/$(SITE) \
17             $(top_srcdir)/include/add-header.xsl $< > $@
18
19 # XSLT mangles PHP because PHP is evil ...
20 %.php3 %.php %.phtml: %.wml $(top_srcdir)/include/evilsedhack
21         @$(top_srcdir)/include/evilsedhack $< $(HTTP_PREFIX)/$(SITE) > $@
22
23
24 .htaccess: htaccess
25         @sed -e "s,@SITE@,$(HTTP_PREFIX)/$(SITE)," $< > $@