[xml/sgml-commit] [SCM] linuxdoc-tools package for Debian. branch, master, updated. debian/0.9.66-9-gae91c9e

Agustin Martin Domingo agmartin at debian.org
Mon Oct 10 13:33:29 UTC 2011


The following commit has been merged in the master branch:
commit 91e62a883a0b40d55bf5255e85c98c5edace291b
Author: Agustin Martin Domingo <agmartin at debian.org>
Date:   Thu Oct 6 19:59:22 2011 +0200

    Makefile.in: Pass CFLAGS and LDFLAGS instead of only OPTIMIZE.

diff --git a/Makefile.in b/Makefile.in
index 39d6d47..5d1c021 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -42,13 +42,19 @@ tex_ddir           = $(DESTDIR)$(texdir)
 
 progs    := sgml2html sgml2info sgml2latex sgml2lyx sgml2rtf sgml2txt sgmlcheck
 
-OPTIMIZE  = -O
+PROFILE  =
+INCLUDE  =
+OPTIMIZE = -O
+DEBUG    =
+WARN     =
+CFLAGS   = $(DEBUG) $(INCLUDE) $(WARN) $(PROFILE) $(OPTIMIZE)
+LDFLAGS  = $(DEBUG) $(PROFILE)
 
 all:
 ifeq ($(BUILD_SGMLSASP), true)
 	@echo "Compiling the SGML translator tools (in sgmls-1.1/)..."
 	( cd sgmls-1.1 ; \
-	  $(MAKE) OPTIMIZE="$(OPTIMIZE)" sgmlsasp )
+	  $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" sgmlsasp )
 endif
 # nsgmls or onsgmls should be installed already
 # ifeq ($(BUILD_NSGMLS), true)
@@ -59,14 +65,16 @@ endif
 ifeq ($(BUILD_ENTITY_MAP), true)
 	@echo "Building Entity Mapping library (in entity-map)..."
 	( cd entity-map ; \
-	  $(MAKE) )
+	  $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)")
 endif
 	@echo "Compiling preprocessor (in sgmlpre/)..."
 	( cd sgmlpre ; \
-	  $(MAKE) CFLAGS="$(OPTIMIZE)" LEX=flex sgmlpre || exit -1 )
+	  $(MAKE)  CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LEX=flex sgmlpre || exit -1 )
+
 	@echo "Compiling RTF conversion tools (in rtf-fix/)..."
 	( cd rtf-fix ; \
-	  $(MAKE) CFLAGS="$(OPTIMIZE)" || exit -1 )
+	  $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" || exit -1 )
+
 	@echo "making man pages in genman ..."
 	if [ ! -d genman ]; then mkdir genman ; fi
 	for ii in man/* ; do \

-- 
linuxdoc-tools package for Debian.



More information about the debian-xml-sgml-commit mailing list