[Lsb-messages] /var/www/bzr/lsb/devel/build_env r2140: Allow turning on of mkheader debug output during header build.

Jeff Licquia licquia at linuxfoundation.org
Fri Aug 23 18:35:56 UTC 2013


------------------------------------------------------------
revno: 2140
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: build_env
timestamp: Fri 2013-08-23 14:35:56 -0400
message:
  Allow turning on of mkheader debug output during header build.
modified:
  headers/Makefile
-------------- next part --------------
=== modified file 'headers/Makefile'
--- a/headers/Makefile	2012-12-26 20:25:09 +0000
+++ b/headers/Makefile	2013-08-23 18:35:56 +0000
@@ -10,6 +10,10 @@
 ARCHVER = $(foreach ver,$(LSB_VERSIONS),defs-$(arch)_$(ver))
 DATADEFS := $(foreach arch,$(LSB_SUPPORTED_ARCHS),$(ARCHVER))
 
+# Use HEADER_DEBUG to output debug information into the header.
+# Please don't commit debug into into version control.
+# HEADER_DEBUG = -d
+
 all: 
 
 gensrc: versionfiles core_filelist desktop_filelist headers datadefs headerlist
@@ -40,12 +44,12 @@
 	./mkdatadef -a $(shell expr $* : '\([^_]*\)') -v $(shell expr $* : '[^_]*_\([^/]*\)') -h $(shell expr $* : '[^_]*_[^/]*/\(.*\)') | $(INDENT) -kr -sob | ./collapse_ifdefs.pl > $(shell echo "$@" | sed s/_/\\//)
 
 %.h:
-	./mkheader -a All -h $@ | $(INDENT) -kr | ./collapse_ifdefs.pl >$@
+	./mkheader $(HEADER_DEBUG) -a All -h $@ | $(INDENT) -kr | ./collapse_ifdefs.pl >$@
 
 # Use 'header.h-defs' to unconditionally regenerate header.h and all header.h.defs
 %.h-defs: 
 	make $(foreach arch,$(LSB_SUPPORTED_ARCHS),$(foreach ver,$(LSB_VERSIONS),$(arch)_$(ver)/$(subst h-defs,h.defs,$@)))
-	./mkheader -a All -h $(subst -defs,,$@) | $(INDENT) -kr | ./collapse_ifdefs.pl > $(subst -defs,,$@)
+	./mkheader $(HEADER_DEBUG) -a All -h $(subst -defs,,$@) | $(INDENT) -kr | ./collapse_ifdefs.pl > $(subst -defs,,$@)
 
 install: install-core install-desktop
 



More information about the lsb-messages mailing list