Fix make dist
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
diff --git a/libffi/ChangeLog.libffi b/libffi/ChangeLog.libffi
index 5b4b667..8daac97 100644
--- a/libffi/ChangeLog.libffi
+++ b/libffi/ChangeLog.libffi
@@ -1,5 +1,11 @@
2008-02-14 Anthony Green <green@redhat.com>
+ * include/Makefile.am (nodist_includes_HEADERS): Define. Don't
+ distribute ffitarget.h from the build include dir.
+ * Makefile.in: Rebuilt.
+
+2008-02-14 Anthony Green <green@redhat.com>
+
* include/Makefile.am (includesdir): Install headers under libdir.
(pkgconfigdir): Define. Install libffi.pc.
* include/Makefile.in: Rebuilt.
diff --git a/libffi/Makefile.am b/libffi/Makefile.am
index 4d30ce6..3715291 100644
--- a/libffi/Makefile.am
+++ b/libffi/Makefile.am
@@ -81,7 +81,6 @@ noinst_LTLIBRARIES = libffi_convenience.la
libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
src/raw_api.c src/java_raw_api.c src/closures.c
-# include/ffi_common.h include/ffitarget.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libffi.pc
diff --git a/libffi/Makefile.in b/libffi/Makefile.in
index 5c3e892..43c700f 100644
--- a/libffi/Makefile.in
+++ b/libffi/Makefile.in
@@ -390,7 +390,6 @@ noinst_LTLIBRARIES = libffi_convenience.la
libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
src/raw_api.c src/java_raw_api.c src/closures.c
-# include/ffi_common.h include/ffitarget.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libffi.pc
nodist_libffi_la_SOURCES = $(am__append_1) $(am__append_2) \
diff --git a/libffi/include/Makefile.am b/libffi/include/Makefile.am
index abdba52..541314e 100644
--- a/libffi/include/Makefile.am
+++ b/libffi/include/Makefile.am
@@ -6,4 +6,5 @@ DISTCLEANFILES=ffitarget.h
EXTRA_DIST=ffi.h.in ffi_common.h
includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
-includes_HEADERS = ffi.h ffitarget.h
+includes_HEADERS = ffi.h
+nodist_includes_HEADERS = ffitarget.h
diff --git a/libffi/include/Makefile.in b/libffi/include/Makefile.in
index 1c240f3..2bc8a16 100644
--- a/libffi/include/Makefile.in
+++ b/libffi/include/Makefile.in
@@ -52,9 +52,11 @@ am__vpath_adj = case $$p in \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
-am__installdirs = "$(DESTDIR)$(includesdir)"
+am__installdirs = "$(DESTDIR)$(includesdir)" \
+ "$(DESTDIR)$(includesdir)"
includesHEADERS_INSTALL = $(INSTALL_HEADER)
-HEADERS = $(includes_HEADERS)
+nodist_includesHEADERS_INSTALL = $(INSTALL_HEADER)
+HEADERS = $(includes_HEADERS) $(nodist_includes_HEADERS)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -183,7 +185,8 @@ AUTOMAKE_OPTIONS = foreign
DISTCLEANFILES = ffitarget.h
EXTRA_DIST = ffi.h.in ffi_common.h
includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
-includes_HEADERS = ffi.h ffitarget.h
+includes_HEADERS = ffi.h
+nodist_includes_HEADERS = ffitarget.h
all: all-am
.SUFFIXES:
@@ -241,6 +244,23 @@ uninstall-includesHEADERS:
echo " rm -f '$(DESTDIR)$(includesdir)/$$f'"; \
rm -f "$(DESTDIR)$(includesdir)/$$f"; \
done
+install-nodist_includesHEADERS: $(nodist_includes_HEADERS)
+ @$(NORMAL_INSTALL)
+ test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)"
+ @list='$(nodist_includes_HEADERS)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(nodist_includesHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includesdir)/$$f'"; \
+ $(nodist_includesHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includesdir)/$$f"; \
+ done
+
+uninstall-nodist_includesHEADERS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(nodist_includes_HEADERS)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(includesdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(includesdir)/$$f"; \
+ done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
@@ -320,7 +340,7 @@ check-am: all-am
check: check-am
all-am: Makefile $(HEADERS)
installdirs:
- for dir in "$(DESTDIR)$(includesdir)"; do \
+ for dir in "$(DESTDIR)$(includesdir)" "$(DESTDIR)$(includesdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
@@ -366,7 +386,8 @@ info: info-am
info-am:
-install-data-am: install-includesHEADERS
+install-data-am: install-includesHEADERS \
+ install-nodist_includesHEADERS
install-dvi: install-dvi-am
@@ -400,7 +421,8 @@ ps: ps-am
ps-am:
-uninstall-am: uninstall-includesHEADERS
+uninstall-am: uninstall-includesHEADERS \
+ uninstall-nodist_includesHEADERS
.MAKE: install-am install-strip
@@ -411,11 +433,13 @@ uninstall-am: uninstall-includesHEADERS
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am \
install-includesHEADERS install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
- ps ps-am tags uninstall uninstall-am uninstall-includesHEADERS
+ install-man install-nodist_includesHEADERS install-pdf \
+ install-pdf-am install-ps install-ps-am install-strip \
+ installcheck installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic \
+ mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
+ uninstall-am uninstall-includesHEADERS \
+ uninstall-nodist_includesHEADERS
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.