]> pd.if.org Git - zpackage/commitdiff
add new files to make targets v0.3.1
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 1 Dec 2018 17:26:12 +0000 (17:26 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 1 Dec 2018 17:30:30 +0000 (17:30 +0000)
Makefile

index 6c6414b6552e289b11ec6ff7c6c50ff81cfecfe2..4ad7edbce9d1bdea1119d733361c4909bdc6dc56 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ ZPKGBIN=zpm-addfile zpm-extract zpm-init zpm-vercmp zpm-stat zpm-hash \
 
 SCRIPTS=zpm zpm-install zpm-merge zpm-list zpm-preserve zpm-test zpm-log \
        zpm-contents zpm-uninstall zpm-pathmod zpm-rmpackage zpm-newpackage \
-       zpm-pkg zpm-add zpm-pkgfile zpm-gc
+       zpm-pkg zpm-add zpm-pkgfile zpm-gc zpm-repo
 COMPILED=$(ZPKGBIN)
 PROGRAMS=$(SCRIPTS) $(COMPILED)
 
@@ -187,9 +187,11 @@ zpm-shell: sqlite/sqlite3.o sqlite/shell.o sqlite/extensions.o lib/vercmp.o
 libelf.a: elf/libelf.o
        ar rcuv $@ $?
 
-install: $(COMPILED)
+install: $(COMPILED) doc/zpm.8
        test -d $(DESTDIR)/sbin || install -d $(DESTDIR)/sbin
        install $(PROGRAMS) $(DESTDIR)/sbin
+       mkdir $(DESTDIR)/usr/share/man/man8
+       install -m644 doc/zpm.8 $(DESTDIR)/usr/share/man/man8
 
 scan-prep: clean sqlite/sqlite3.o sqlite/shell.o lib/liblzma.a
        @echo scan-build -v -o report make -j10