summaryrefslogtreecommitdiff
path: root/rules.common
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-11-02 05:06:55 +0000
committerGlynn Foster <gman@src.gnome.org>2003-11-02 05:06:55 +0000
commit1da5dd6995bcfc68ca17dbad4ad5459161072133 (patch)
treef999733514b2906c1720368aec80d9256b0a2630 /rules.common
parenta5c00bce9c3032162eec9a1673a427e1a42013dc (diff)
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!
Diffstat (limited to 'rules.common')
-rw-r--r--rules.common19
1 files changed, 19 insertions, 0 deletions
diff --git a/rules.common b/rules.common
new file mode 100644
index 0000000..2370ec2
--- /dev/null
+++ b/rules.common
@@ -0,0 +1,19 @@
+# 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)," $< > $@