X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=4ad7edbce9d1bdea1119d733361c4909bdc6dc56;hb=de3ce49c093f0c274d2921fa90ad829e1fc4a5f9;hp=bbc69913c556bd6013d9d3e7e0293b32c171db38;hpb=b14d452ddce90289441c07447d4d4a27821a5ce3;p=zpackage diff --git a/Makefile b/Makefile index bbc6991..4ad7edb 100644 --- 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) @@ -72,10 +72,11 @@ lib/libjsw.a: $(JSWOBJ) ZPM:= ./zpm -P. -zpm-$(ZPMVER)-1.zpm: programs +zpm-$(ZPMVER)-1.zpm: programs doc/zpm.8 rm -f $@ $(ZPM) newpackage -C zpm-$(ZPMVER)-1 $(ZPM) add -v -u root -g root -f $@ -P /sbin zpm-$(ZPMVER)-1 $(sort $(PROGRAMS)) + $(ZPM) add -v -u root -g root -f $@ -P /usr/share/man/man8 -S doc doc/zpm.8 tarball: zpm-$(ZPMVER)-1.tar.xz @@ -186,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