]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
create install-py and install-tcl targets
authorRyan Carsten Schmidt <git@ryandesign.com>
Thu, 25 Apr 2024 06:18:48 +0000 (06:18 +0000)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 6 May 2024 09:12:25 +0000 (11:12 +0200)
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.

Makefile.in

index 335e71e2e6d39ad9d2b5b861c725b5f9ee0dd03c..7534abe30e90f0c898c420868f5e39a106f53c25 100644 (file)
@@ -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"