From e0f364a6f877fae5e087de506f9adf9ca64e1c3c Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 21 Nov 2010 01:58:56 +0000 Subject: [PATCH] Don't install include/ and lib/ directories. Quick hack to the plpa-1.3.2 Makefile.am to suppress this problem. Closes #2814374. --- plpa-1.3.2/src/libplpa/Makefile.am | 35 ++---------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/plpa-1.3.2/src/libplpa/Makefile.am b/plpa-1.3.2/src/libplpa/Makefile.am index 6b3d3c1f..72e220eb 100644 --- a/plpa-1.3.2/src/libplpa/Makefile.am +++ b/plpa-1.3.2/src/libplpa/Makefile.am @@ -17,26 +17,12 @@ # $HEADER$ # -# Defaults -lib_LTLIBRARIES = -noinst_LTLIBRARIES = -nodist_include_HEADERS = -nodist_noinst_HEADERS = - # Note that this file is generated by configure, so we don't want to # ship it in the tarball. Hence the "nodist_" prefixes to the HEADERS # macros, below. public_headers = plpa.h - -# See which mode we're building in -if PLPA_BUILD_STANDALONE -lib_LTLIBRARIES += libplpa.la -nodist_include_HEADERS += $(public_headers) -libplpa_la_LDFLAGS = -version-info $(libplpa_so_version) -else -noinst_LTLIBRARIES += libplpa_included.la -nodist_noinst_HEADERS += $(public_headers) -endif +noinst_LTLIBRARIES = libplpa_included.la +nodist_noinst_HEADERS = $(public_headers) # The sources plpa_sources = \ @@ -46,22 +32,5 @@ plpa_sources = \ plpa_runtime.c \ plpa_map.c -libplpa_la_SOURCES = $(plpa_sources) libplpa_included_la_SOURCES = $(plpa_sources) -# Add a hook to run *after* the header file has been installed out to -# the target location. It changes the pesky PACKAGE_* macros that -# autoconf automatically generates (and there is no way of turning -# off) into PLPA_PACKAGE_* in order to make safe to include -# with other files. - -if PLPA_BUILD_STANDALONE -install-data-hook: - sed -e 's/define PACKAGE/define PLPA_PACKAGE/' \ - $(DESTDIR)$(includedir)/plpa.h \ - > $(DESTDIR)$(includedir)/plpa.h.install - cp $(DESTDIR)$(includedir)/plpa.h.install \ - $(DESTDIR)$(includedir)/plpa.h - rm -f $(DESTDIR)$(includedir)/plpa.h.install - chmod 0644 $(DESTDIR)$(includedir)/plpa.h -endif