voting/rules.common
Glynn Foster 2bb34eacfa Merge the new-template branch in to HEAD. The branch is now defunct, and
2003-11-01  Glynn Foster  <glynn.foster@sun.com>

	* Merge the new-template branch in to HEAD. The branch is now defunct,
	and we have a live updated foundation.gnome.org. Yay!
2003-11-02 05:06:55 +00:00

19 lines
478 B
Text

# Site-structural variables
SITE = $(notdir $(subst $(shell echo $(urlpath) | sed "s,/$$,,"),,$(CURDIR)))
pagedir = $(prefix)/$(SITE)/$(urlpath)
# Boring make stuff
BUILT_SOURCES = $(page_SCRIPTS)
CLEANFILES = $(BUILT_SOURCES)
# Interesting target stuff
%.html %.shtml %.php3 %.php %.phtml: %.wml $(top_srcdir)/include/evilsedhack
@$(top_srcdir)/include/evilsedhack $< $(HTTP_PREFIX)/$(SITE) > $@
.htaccess: htaccess
@sed -e "s,@SITE@,$(HTTP_PREFIX)/$(SITE)," $< > $@