mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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:
parent
2960a8162e
commit
e0f364a6f8
@ -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 <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
|
||||
|
Loading…
Reference in New Issue
Block a user