1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Description: debianization -- multi-arch includes
Distribute the configuration C header generated by the autotools machinery as
an architecture dependent C header, contary to the other C headers which are
meant to be architecture independent.
This is a Debian centric patch.
Origin: debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2015-05-20
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,3 +1,5 @@
+pkgincludearchdir = $(includedir)/$(DEB_HOST_MULTIARCH)/testu01
+
%.h: ${MYLIB}/%.tex
${top_builddir}/tcode $< $@
@@ -9,14 +11,15 @@
include Makefile.def
-pkginclude_HEADERS = $(MYLIBHEADERS) $(PROBDISTHEADERS) $(TESTU01HEADERS) gdefconf.h
+pkgincludearch_HEADERS = gdefconf.h
+pkginclude_HEADERS = $(MYLIBHEADERS) $(PROBDISTHEADERS) $(TESTU01HEADERS)
noinst_HEADERS = $(MYLIBTEX) $(PROBDISTTEX) $(TESTU01TEX)
noinst_SCRIPTS = makedef
-header-links: remove-links $(pkginclude_HEADERS)
+header-links: remove-links $(pkginclude_HEADERS) $(pkgincludearch_HEADERS)
$(MKDIR_P) testu01
- for h in $(pkginclude_HEADERS) ; do test -e testu01/$$h || $(LN_S) ../$$h testu01/$$h ; done
+ for h in $(pkginclude_HEADERS) $(pkgincludearch_HEADERS) ; do test -e testu01/$$h || $(LN_S) ../$$h testu01/$$h ; done
remove-links:
[ ! -d testu01 ] || rm -f testu01/*.h
|