11INSTALL = install
22INSTALL_DATA = $(INSTALL ) -Dm644
33INSTALL_PROGRAM = $(INSTALL ) -Dm755
4- INSTALL_CRON = $(INSTALL ) -Dm744
5-
64prefix = /usr
75exec_prefix = $(prefix )
86confdir = /etc
97bindir = $(exec_prefix ) /bin
108libdir = $(prefix ) /lib
119sharedir = $(prefix ) /share/pkgtools
12- cachedir = /var/cache/pkgtools/lists
1310profiledir = $(confdir ) /profile.d
14- crondir = $(confdir ) /cron.daily
1511mandir = $(prefix ) /share/man
1612
1713.PHONY : all
1814
19- all : pkgfile.so
15+ all : install
2016
2117install :
2218 # Common functions needed by all scripts
@@ -29,18 +25,6 @@ install:
2925 $(INSTALL) -d $(DESTDIR)$(sharedir)/newpkg/presets/
3026 $(INSTALL) -m644 other/newpkg_presets/* $(DESTDIR)$(sharedir)/newpkg/presets/
3127
32- # pkgfile
33- $(INSTALL) -d $(DESTDIR)$(cachedir)
34- $(INSTALL_PROGRAM) scripts/pkgfile.py $(DESTDIR)$(bindir)/pkgfile
35- $(INSTALL_DATA) confs/pkgfile.conf $(DESTDIR)$(confdir)/pkgtools/pkgfile.conf
36- $(INSTALL_CRON) other/pkgfile.cron $(DESTDIR)$(crondir)/pkgfile
37- # install pkgfile.so module
38- (cd modules; python3 ./setup.py install --root=$(DESTDIR))
39- # Loads shell hooks
40- $(INSTALL_PROGRAM) other/pkgfile-hook.sh $(DESTDIR)$(profiledir)/pkgfile-hook.sh
41- $(INSTALL_DATA) other/pkgfile-hook.zsh $(DESTDIR)$(sharedir)/pkgfile-hook.zsh
42- $(INSTALL_DATA) other/pkgfile-hook.bash $(DESTDIR)$(sharedir)/pkgfile-hook.bash
43-
4428 # spec2arch
4529 $(INSTALL_PROGRAM) scripts/spec2arch $(DESTDIR)$(bindir)/spec2arch
4630 $(INSTALL_DATA) confs/spec2arch.conf $(DESTDIR)$(confdir)/pkgtools/spec2arch.conf
@@ -64,15 +48,7 @@ install:
6448
6549uninstall :
6650 rm -Rf $(DESTDIR )$(sharedir )
67- rm $(DESTDIR )$(bindir ) /{newpkg,pkgfile,spec2arch,pkgconflict,whoneeds,pkgclean,pip2arch}
68- rm $(DESTDIR )$(crondir ) /pkgfile
69- rm $(DESTDIR )$(profiledir ) /pkgfile-hook.*
51+ rm $(DESTDIR )$(bindir ) /{newpkg,spec2arch,pkgconflict,whoneeds,pkgclean,pip2arch}
7052 rm -Rf $(DESTDIR )$(confdir ) /pkgtools
7153 rm $(DESTDIR )$(mandir ) /man8/spec2arch.8
7254 rm $(DESTDIR )$(mandir ) /man5/spec2arch.conf.5
73-
74- pkgfile.so :
75- (cd modules; python3 ./setup.py build)
76-
77- clean :
78- (rm -rf modules/build)
0 commit comments