From e418dd9b6e38935210f8e8b9ce3f5c837fbf579c Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Jun 01 2020 08:56:44 +0000 Subject: 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. --- diff --git a/Makefile.in b/Makefile.in index f991184..3502a4c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -137,18 +137,17 @@ $(SHAREDDIR)/%.o : %.c 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) @@ -158,6 +157,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"