diff options
author | Glynn Foster <glynn.foster@sun.com> | 2003-11-02 05:06:55 +0000 |
---|---|---|
committer | Glynn Foster <gman@src.gnome.org> | 2003-11-02 05:06:55 +0000 |
commit | 1da5dd6995bcfc68ca17dbad4ad5459161072133 (patch) | |
tree | f999733514b2906c1720368aec80d9256b0a2630 /rules.common | |
parent | a5c00bce9c3032162eec9a1673a427e1a42013dc (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.common | 19 |
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)," $< > $@ |