diff options
author | fbarriere <fbarriere> | 2002-03-20 21:20:08 +0000 |
---|---|---|
committer | fbarriere <fbarriere> | 2002-03-20 21:20:08 +0000 |
commit | e793e9aa8ed1f0f188b18e48cd33d4e1b6c2855e (patch) | |
tree | 1517ef97648a4c10a2f469d9d4d7c99318ac1a91 /faq/Makefile | |
parent | cd4cc0bb258d7bcb0b7ff2e678ac705ca8d6c1e2 (diff) | |
download | sylpheeddoc-doc-e793e9aa8ed1f0f188b18e48cd33d4e1b6c2855e.tar.gz sylpheeddoc-doc-e793e9aa8ed1f0f188b18e48cd33d4e1b6c2855e.tar.xz sylpheeddoc-doc-e793e9aa8ed1f0f188b18e48cd33d4e1b6c2855e.zip |
Now just a wrapper around the unique Makefile you should find
in the parent directory.
Diffstat (limited to 'faq/Makefile')
-rw-r--r-- | faq/Makefile | 94 |
1 files changed, 8 insertions, 86 deletions
diff --git a/faq/Makefile b/faq/Makefile index 5e9fe1d..e50bae1 100644 --- a/faq/Makefile +++ b/faq/Makefile @@ -1,15 +1,14 @@ ###################################################################### -# 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. +# Just a wrapper to launch the 'big' Makefile from above... +# For details read ../Makefile. # ###################################################################### # $Log: Makefile,v $ +# Revision 1.3 2002/03/20 21:20:08 fbarriere +# Now just a wrapper around the unique Makefile you should find +# in the parent directory. +# # Revision 1.2 2002/03/12 20:41:44 nikai # sgml2html language support # @@ -20,83 +19,6 @@ # Created. # ###################################################################### -TODAY := $(shell date "+%d%m%y") - -SGML_TOOL := /usr/bin/sgml2html -SGML_TOOL_OPT := --language=$(LANG1) -#SGML_TOOL_OPT := --imagebuttons - -# -# Defines the list of languages to process. -# -LANGS := en fr es de - -# -# 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)/* +.DEFAULT: + $(MAKE) -C .. ALL_TYPES=faq $@ |