From: Michael Olbrich Date: Fri, 2 Feb 2018 13:02:20 +0100 Subject: [PATCH] install header and pkg-config file with the shared library This way the shared library can be installed without building whiptail. This avoids a dependency on libpopt. Signed-off-by: Michael Olbrich --- Makefile.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 80eaa0ab7da9..34e22b824f5e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -139,18 +139,17 @@ $(SHAREDDIR)/%.o : %.c | $(SHAREDDIR) install: $(LIBNEWT) install-sh whiptail [ -d $(instroot)/$(bindir) ] || install -m 755 -d $(instroot)/$(bindir) [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir) - [ -d $(instroot)/$(includedir) ] || install -m 755 -d $(instroot)/$(includedir) [ -d $(instroot)/$(man1dir) ] || install -m 755 -d $(instroot)/$(man1dir) - [ -d $(instroot)/$(pkgconfigdir) ] || install -m 755 -d $(instroot)/$(pkgconfigdir) - install -m 644 newt.h $(instroot)/$(includedir) install -m 644 $(LIBNEWT) $(instroot)/$(libdir) install -m 755 whiptail $(instroot)/$(bindir) install -m 644 whiptail.1 $(instroot)/$(man1dir) make -C po datadir=$(instroot)/$(datadir) install - install -m 644 libnewt.pc $(instroot)/$(pkgconfigdir) install-sh: sharedlib $(WHIPTCLSO) _snack.$(SOEXT) [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir) + [ -d $(instroot)/$(includedir) ] || install -m 755 -d $(instroot)/$(includedir) + [ -d $(instroot)/$(pkgconfigdir) ] || install -m 755 -d $(instroot)/$(pkgconfigdir) + install -m 644 newt.h $(instroot)/$(includedir) install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir) ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.$(SOEXT) ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME) @@ -160,6 +159,7 @@ install-sh: sharedlib $(WHIPTCLSO) _snack.$(SOEXT) install -m 755 $$ver/_snack.$(SOEXT) $(instroot)/$(libdir)/$$ver/site-packages ;\ install -m 644 snack.py $(instroot)/$(libdir)/$$ver/site-packages ;\ done || : + install -m 644 libnewt.pc $(instroot)/$(pkgconfigdir) Makefile: configure.ac @echo "You need to rerun ./autogen.sh and ./configure before continuing"