[gimp-help-2] [make] Make HTML packages
- From: Ulf-D. Ehlert <ulfehlert src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp-help-2] [make] Make HTML packages
- Date: Wed, 2 Sep 2009 18:58:08 +0000 (UTC)
commit 947eae559be8598f8242375e9ed49b02ffea9937
Author: Ulf-D. Ehlert <ulfehlert svn gnome org>
Date: Wed Sep 2 20:24:27 2009 +0200
[make] Make HTML packages
* Makefile.am: fix making HTML zip package; minor changes
* Makefile.GNU: add targets for making HTML packages
Makefile.GNU | 38 ++++++++++++++++++++++++++++++++++++++
Makefile.am | 16 +++++++++++-----
2 files changed, 49 insertions(+), 5 deletions(-)
---
diff --git a/Makefile.GNU b/Makefile.GNU
index f284025..15fd002 100644
--- a/Makefile.GNU
+++ b/Makefile.GNU
@@ -737,6 +737,44 @@ $(AUTHORS_DOCBOOK_XML): $(AUTHORS_SOURCE_XML) $(AUTHORS_DOCBOOK_STYLESHEETS)
########################################################################
+#### Make language-specific HTML tarballs ####
+########################################################################
+
+tarball_prefix = gimp-help-2-html
+tarball_dir = gimp-help-2
+
+$(tarball_prefix)-%.tar: html/%/index.html html/%/gimp-help.xml
+ $(msg) "Making $@ ..."
+ $(cmd) rm -rf $(tarball_dir)/html
+ $(cmd) $(mkdir_p) $(tarball_dir)/html
+ $(cmd) cd $(tarball_dir)/html && $(ln_s) ../../html/$* .
+ $(cmd) tar -chf $@ $(tarball_dir)/html/$*
+ $(cmd) rm -rf $(tarball_dir)
+
+$(tarball_prefix)-%.tar.gz: $(tarball_prefix)-%.tar
+ $(msg) "Making $@ ..."
+ $(cmd) gzip -c9 $< > $@
+
+$(tarball_prefix)-%.tar.bz2: $(tarball_prefix)-%.tar
+ $(msg) "Making $@ ..."
+ $(cmd) bzip2 -c9 $< > $@
+
+$(tarball_prefix)-%.tar.xz: $(tarball_prefix)-%.tar
+ $(msg) "Making $@ ..."
+ $(cmd) xz -c9 $< > $@
+
+$(tarball_prefix)-%.zip: $(tarball_prefix)-%.tar
+ $(msg) "Making $@ ..."
+ $(cmd) rm -rf $(tarball_dir)/html
+ $(cmd) $(mkdir_p) $(tarball_dir)/html
+ $(cmd) cd $(tarball_dir)/html && $(ln_s) ../../html/$* .
+ $(cmd) zip -9rq $@ $(tarball_dir)/html
+ $(cmd) rm -rf $(tarball_dir)
+
+.SECONDARY: $(tarball_prefix)-%.tar
+
+
+########################################################################
#### Clean up ####
########################################################################
diff --git a/Makefile.am b/Makefile.am
index cbd7dfc..b4040d6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -726,6 +726,7 @@ tarball_dir = gimp-help-2
.SECONDARY: $(tarball_prefix)-%.tar
$(tarball_prefix)-%.tar: html/%/index.html html/%/gimp-help.xml
+ $(msg) "Making $@ ..."
$(cmd) rm -rf $(tarball_dir)/html
$(cmd) $(MKDIR_P) $(tarball_dir)/html
$(cmd) cd $(tarball_dir)/html && $(LN_S) ../../html/$* .
@@ -733,15 +734,20 @@ $(tarball_prefix)-%.tar: html/%/index.html html/%/gimp-help.xml
$(cmd) rm -rf $(tarball_dir)
$(tarball_prefix)-%.tar.gz: $(tarball_prefix)-%.tar
- gzip -c9 $< > $@
+ $(msg) "Making $@ ..."
+ $(cmd) gzip -c9 $< > $@
$(tarball_prefix)-%.tar.bz2: $(tarball_prefix)-%.tar
- bzip2 -c9 $< > $@
+ $(msg) "Making $@ ..."
+ $(cmd) bzip2 -c9 $< > $@
$(tarball_prefix)-%.zip: $(tarball_prefix)-%.tar
- tar xf $<
- zip -9r $@ $(tarball_prefix)-$*
- rm -rf $(tarball_prefix)-$*
+ $(msg) "Making $@ ..."
+ $(cmd) rm -rf $(tarball_dir)/html
+ $(cmd) $(MKDIR_P) $(tarball_dir)/html
+ $(cmd) cd $(tarball_dir)/html && $(LN_S) ../../html/$* .
+ $(cmd) zip -9rq $@ $(tarball_dir)/html
+ $(cmd) rm -rf $(tarball_dir)
html-dist: \
$(foreach lang,$(LANGUAGES), \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]