summaryrefslogtreecommitdiffstats
path: root/faq
diff options
context:
space:
mode:
authorfbarriere <fbarriere>2001-12-03 21:38:46 +0000
committerfbarriere <fbarriere>2001-12-03 21:38:46 +0000
commit215f781eb061309429a528a8080a39ec6ccc9705 (patch)
treed002ea508ccd0077f67d3456c0aa25d9873e3010 /faq
parent8efc9ddc8a3341a082d03293b46e3876800c3dee (diff)
downloadsylpheeddoc-doc-215f781eb061309429a528a8080a39ec6ccc9705.tar.gz
sylpheeddoc-doc-215f781eb061309429a528a8080a39ec6ccc9705.tar.xz
sylpheeddoc-doc-215f781eb061309429a528a8080a39ec6ccc9705.zip
Created, added 'release' target.
Diffstat (limited to 'faq')
-rw-r--r--faq/Makefile99
1 files changed, 99 insertions, 0 deletions
diff --git a/faq/Makefile b/faq/Makefile
new file mode 100644
index 0000000..9b596af
--- /dev/null
+++ b/faq/Makefile
@@ -0,0 +1,99 @@
+######################################################################
+# Generate HTML pages from SGML docs.
+# ==================================
+#
+# You may need to define (if the default location does not
+# correspond to your installation) the SGML_TOOL variable
+# (using SGML_TOOL=<path-to-sgml2html> on the make command
+# line).
+# The other vars can be left to their default values.
+#
+######################################################################
+# $Log: Makefile,v $
+# Revision 1.1 2001/12/03 21:38:46 fbarriere
+# Created, added 'release' target.
+#
+# Revision 1.1 2001/08/29 21:31:27 fbarriere
+# Created.
+#
+######################################################################
+TODAY := $(shell date "+%d%m%y")
+
+SGML_TOOL := /usr/bin/sgml2html
+SGML_TOOL_OPT :=
+#SGML_TOOL_OPT := --imagebuttons
+
+#
+# Defines the list of languages to process.
+#
+LANGS := en fr es
+
+#
+# Where are the HTML pages:
+#
+HTML_DIR := HTML
+
+#
+# Some standard shell tools:
+#
+MKDIR := mkdir
+CAT := /bin/cat
+RM := /bin/rm -rf
+CTAR := /bin/tar cvfz
+
+#
+# Edits under this point are not recommended.
+# ####################################################
+
+ROOT_DIR := $(shell pwd)
+PACKAGE_DIR := $(ROOT_DIR)/../packages
+PACKAGES := $(addsuffix _$(TODAY).tar.gz,$(addprefix $(PACKAGE_DIR)/faq_, $(LANGS)))
+
+#
+# Top level targets: then per language targets.
+#
+
+all:
+ @ for LANG1 in $(LANGS);\
+ do\
+ echo "***Processing: $$LANG1";\
+ if [ ! -d $(HTML_DIR) ];\
+ then\
+ $(MKDIR) $(HTML_DIR);\
+ fi;\
+ if [ ! -d $(HTML_DIR)/$$LANG1 ];\
+ then\
+ $(MKDIR) $(HTML_DIR)/$$LANG1;\
+ fi;\
+ $(MAKE) -f $(ROOT_DIR)/Makefile -C $(HTML_DIR)/$$LANG1 LANG1=$$LANG1 ROOT_DIR=$(ROOT_DIR) sylpheed-faq.html;\
+ done;
+
+#
+# Targets: the final one(s), generate the HTML(s).
+#
+
+sylpheed-faq.html: $(ROOT_DIR)/$(LANG1)/sylpheed-faq.sgml
+ @ echo "******Starting $(SGML_TOOL)."
+ @ $(SGML_TOOL) $(SGML_TOOL_OPT) $(ROOT_DIR)/$(LANG1)/sylpheed-faq.sgml
+
+#
+# Generate the release package:
+#
+release: $(PACKAGES)
+
+$(PACKAGES): $(PACKAGE_DIR)/faq_%_$(TODAY).tar.gz: HTML/%/sylpheed-faq.html
+ @ if [ ! -d $(PACKAGE_DIR) ];\
+ then\
+ echo "***Creating $(PACKAGE_DIR)"; \
+ $(MKDIR) $(PACKAGE_DIR);\
+ fi;\
+ echo "***Packaging: $*"; \
+ $(CTAR) $@ HTML/$*/*.html
+
+#
+# Usual clean target:
+#
+
+clean:
+ - $(RM) $(HTML_DIR)
+ - $(RM) $(PACKAGE_DIR)/*