#13 install header and pkg-config file with the shared library
Closed 4 months ago by mlichvar. Opened 5 months ago by molbrich.
molbrich/newt install  into  master

file modified
+4 -4
@@ -137,18 +137,17 @@ 

  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 -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"

This way the shared library can be installed without building whiptail.
This avoids a dependency on libpopt.

Pull-Request has been closed by mlichvar

4 months ago
Metadata