From: Ryan Carsten Schmidt Date: Thu, 25 Apr 2024 06:18:48 +0000 (+0000) Subject: create install-py and install-tcl targets X-Git-Tag: r0-52-25~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=103a604418d48e504eb62ccb27fa83589f5026e3;p=thirdparty%2Fnewt.git create install-py and install-tcl targets The install-py target can be used to install just the python modules and the install-tcl target can be used to install just whiptcl.so. The install-sh target can still be used to install both of those as well as libnewt.so, newt.h, and libnewt.pc as before. --- diff --git a/Makefile.in b/Makefile.in index 335e71e..7534abe 100644 --- a/Makefile.in +++ b/Makefile.in @@ -143,7 +143,7 @@ install: $(LIBNEWT) install-sh whiptail install -m 644 whiptail.1 $(instroot)/$(man1dir) make -C po datadir=$(instroot)/$(datadir) install -install-sh: sharedlib $(WHIPTCLSO) _snack.$(SOEXT) +install-sh: sharedlib install-tcl install-py [ -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) @@ -151,9 +151,15 @@ install-sh: sharedlib $(WHIPTCLSO) _snack.$(SOEXT) install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir) ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.$(SOEXT) ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME) + install -m 644 libnewt.pc $(instroot)/$(pkgconfigdir) + +install-tcl: $(WHIPTCLSO) ifneq ($(WHIPTCLSO),) + [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir) install -m 755 $(WHIPTCLSO) $(instroot)/$(libdir) endif + +install-py: _snack.$(SOEXT) ifneq ($(PYTHONVERS),) for ver in $(PYTHONVERS); do \ [ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\ @@ -161,7 +167,6 @@ ifneq ($(PYTHONVERS),) install -m 644 snack.py $(instroot)/$(libdir)/$$ver/site-packages ;\ done endif - install -m 644 libnewt.pc $(instroot)/$(pkgconfigdir) Makefile: configure.ac @echo "You need to rerun ./autogen.sh and ./configure before continuing"