lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] (no subject)


From: Greg Chicares
Subject: [lmi-commits] (no subject)
Date: Sun, 17 Jul 2016 23:46:52 +0000 (UTC)

branch: master
commit dfea28f30e24ed08bd5ef435e23245a56ae90c36
Author: Gregory W. Chicares <address@hidden>
Date:   Sun Jul 17 21:38:32 2016 +0000

    Refactor makefile to make it easier to add zlib
    
    zlib cannot use options that are common to xmlsoft.org libraries.
    
    Order-only prerequisites are safe to use now. They were added to gnu
    make in version 3.80, which was released 2002-10-03.
---
 install_libxml2_libxslt.make |   28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/install_libxml2_libxslt.make b/install_libxml2_libxslt.make
index 19ede30..6d7676b 100644
--- a/install_libxml2_libxslt.make
+++ b/install_libxml2_libxslt.make
@@ -26,19 +26,13 @@
 libxml2_version = libxml2-2.9.4
 libxslt_version = libxslt-1.1.29
 
-libxml2_archive := $(libxml2_version).tar.gz
-libxslt_archive := $(libxslt_version).tar.gz
-
 libxml2-2.9.4.tar.gz-md5  := ae249165c173b1ff386ee8ad676815f5
 libxslt-1.1.29.tar.gz-md5 := a129d3c44c022de3b9dcf6d6f288d72e
 
 # Libraries are ordered by dependency, rather than alphabetically.
-source_archives := \
-  $(libxml2_archive) \
-  $(libxslt_archive) \
+libraries := $(libxml2_version) $(libxslt_version)
 
-# libxslt requires a roughly contemporary libxml2
-$(libxslt_version): $(libxml2_version)
+source_archives := $(addsuffix .tar.gz, $(libraries))
 
 # 'ftp://xmlsoft.org' has 'libxml2/' and 'libxslt/' subdirectories,
 # but they seem to be identical: the latter is apparently a link to
@@ -69,7 +63,7 @@ mingw_bin_dir := $(mingw_dir)/bin
 # which elicit fatal errors such as this:
 #   .deps/DOCBparser.Plo:1: *** multiple target patterns.  Stop.
 
-common_options := \
+xmlsoft_common_options := \
   --build=i686-pc-cygwin \
   --host=i686-w64-mingw32 \
   --disable-dependency-tracking \
@@ -94,7 +88,7 @@ common_options := \
 # Expunge '--without-threads' and '--without-zlib' soon.
 
 $(libxml2_version)_options := \
-  $(common_options) \
+  $(xmlsoft_common_options) \
   --with-schemas \
   --without-iconv \
   --without-modules \
@@ -103,7 +97,7 @@ $(libxml2_version)_options := \
   --without-zlib \
 
 $(libxslt_version)_options := \
-  $(common_options) \
+  $(xmlsoft_common_options) \
   --with-libxml-prefix=$(prefix) \
   --without-crypto \
 
@@ -120,15 +114,15 @@ WGET   := wget
 
 # Targets 
######################################################################
 
-libraries := $(libxml2_version) $(libxslt_version)
-
 .PHONY: all
 all: clobber $(source_archives) $(libraries)
 
-# Simulated order-only prerequisites.
-$(libraries): $(source_archives)
-$(source_archives): initial_setup
-initial_setup: clobber
+# Order-only prerequisites.
+
+$(libxslt_version):| $(libxml2_version)
+$(libraries)      :| $(source_archives)
+$(source_archives):| initial_setup
+initial_setup     :| clobber
 
 .PHONY: initial_setup
 initial_setup:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]