aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-04-22 12:54:49 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2013-04-22 12:54:49 +0300
commit25a1bc539643e3b718036004042cb56a69865c96 (patch)
tree2396b77f1d40e9f4ea98b005b8626f870ffc1488 /Makefile
downloadwebdoc-master.tar.gz
webdoc-master.tar.bz2
Initial importHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bf7f992
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,42 @@
+# The entire webdoc source tree must be located under the doc subdirectory
+# of the Eclat tree.
+
+include ../Makefile.inc
+VPATH=..
+
+.SUFFIXES: .1 .5 .htin .html
+
+MAN2HTMLFLAGS=-r
+
+.1.html:
+ man2html $(MAN2HTMLFLAGS) $< | \
+ sed 's/<[\/A-Z][A-Z0-9]*/\L&/g;s|<b>\\dq</b>|<b>\\"</b>|g;s|<b>dq</b>|<b>"</b>|g' | \
+ awk -f postproc.awk
+ m4 -P -DACTIVE=documentation inc/header.html a.1 a.3 a.2 a.4 inc/footer.html > $@
+ rm a.[1-4]
+.5.html:
+ man2html $(MAN2HTMLFLAGS) $< | \
+ sed 's/<[\/A-Z][A-Z0-9]*/\L&/g' | \
+ awk -f postproc.awk
+ m4 -P -DACTIVE=documentation inc/header.html a.1 a.3 a.2 a.4 inc/footer.html > $@
+ rm a.[1-4]
+
+.htin.html:
+ m4 -P -DACTIVE=$* inc/header.html $< inc/footer.html > $@
+
+SOURCES=\
+ index.htin\
+ download.htin\
+ examples.htin
+
+HTMLFILES=$(MANPAGES1:.1=.html) $(MANPAGES5:.5=.html) $(SOURCES:.htin=.html)
+
+all: $(HTMLFILES)
+
+archive: all
+ tar zcf eclat-webdoc.tar.gz $(HTMLFILES) *.css graphics
+
+clean:; rm -f *.html a.[1-4] *~
+
+$(HTMLFILES): Makefile postproc.awk inc/header.html inc/footer.html
+

Return to:

Send suggestions and report system problems to the System administrator.