Don't install include/ and lib/ directories.

Quick hack to the plpa-1.3.2 Makefile.am to suppress this problem.
Closes #2814374.
This commit is contained in:
Hisham Muhammad 2010-11-21 01:58:56 +00:00
parent 2960a8162e
commit e0f364a6f8
1 changed files with 2 additions and 33 deletions

View File

@ -17,26 +17,12 @@
# $HEADER$ # $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 # 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 # ship it in the tarball. Hence the "nodist_" prefixes to the HEADERS
# macros, below. # macros, below.
public_headers = plpa.h public_headers = plpa.h
noinst_LTLIBRARIES = libplpa_included.la
# See which mode we're building in nodist_noinst_HEADERS = $(public_headers)
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
# The sources # The sources
plpa_sources = \ plpa_sources = \
@ -46,22 +32,5 @@ plpa_sources = \
plpa_runtime.c \ plpa_runtime.c \
plpa_map.c plpa_map.c
libplpa_la_SOURCES = $(plpa_sources)
libplpa_included_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 <plpa.h> 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