summaryrefslogtreecommitdiff
path: root/doc/examples/WWW/Makefile
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2013-09-22 09:49:06 +0700
committerGary V. Vaughan <gary@gnu.org>2013-09-22 09:49:06 +0700
commit578bd023ea85d57d8488b8cb88265fbe3a3071e4 (patch)
treecc5a6088277c1a747041f5969cf21d7fca2ca4f1 /doc/examples/WWW/Makefile
parent1eacf10370529972a7407bdbb368f5f69f87a1b8 (diff)
downloadm4-578bd023ea85d57d8488b8cb88265fbe3a3071e4.tar.gz
configury: move usage examples into doc subdirectory.
* examples: Move from here... * doc/examples: ...to here. * Makefile.am (EXTRA_DIST, dist_pkgdata_DATA): Adjust. * README, doc/m4.texi, tests/builtins.at, tests/generate.awk, tests/others.at: Likewise. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'doc/examples/WWW/Makefile')
-rw-r--r--doc/examples/WWW/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/examples/WWW/Makefile b/doc/examples/WWW/Makefile
new file mode 100644
index 00000000..c296ccf4
--- /dev/null
+++ b/doc/examples/WWW/Makefile
@@ -0,0 +1,45 @@
+M4 = ./m4/src/m4
+M4OPTS = -Im4lib
+
+VPATH = .:m4lib
+
+HTM = _footer.htm _header.htm bugs.htm changelog.htm download.htm \
+ features.htm feedback.htm index.htm lists.htm modules.htm \
+ news.htm readme.htm thanks.htm thissite.htm todo.htm uses.htm \
+ visions.htm whatis.htm
+
+M4LIB = m4lib/bugs.m4 m4lib/changelog.m4 m4lib/download.m4 \
+ m4lib/features.m4 m4lib/feedback.m4 m4lib/html.m4 \
+ m4lib/index.m4 m4lib/layout.m4 m4lib/lists.m4 m4lib/menu.m4 \
+ m4lib/modules.m4 m4lib/news.m4 m4lib/readme.m4 \
+ m4lib/setup.m4 m4lib/test.m4 m4lib/thanks.m4 \
+ m4lib/thissite.m4 m4lib/tmpl.m4 m4lib/todo.m4 m4lib/uses.m4 \
+ m4lib/visions.m4 m4lib/whatis.m4
+
+all: ./m4 $(HTM)
+
+./m4:
+ ln -s ../.. m4
+
+%.htm: %.m4
+ @$(M4) $(M4OPTS) $< >new.htm && \
+ if cmp new.htm $@ >/dev/null 2>&1; then \
+ rm new.htm; \
+ echo "$@ has not changed"; \
+ else \
+ echo "$@ updated"; \
+ mv new.htm $@; \
+ fi
+
+.FORCE:
+$(HTM): .FORCE $(M4LIB)
+
+changelog.htm: m4/ChangeLog
+readme.htm: m4/README
+todo.htm: m4/TODO
+news.htm: m4/NEWS
+modules.htm: m4/modules/README
+
+.PHONY: man
+man:
+ cd man; $(MAKE)