X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=13b3d2b6188023aeb6e3fd559bdc24e8bb471d62;hb=773a014fd257d8ca3d2f8a25f8bb0b0f04d78d0f;hp=e57ecbceaae8380259543030d13d4d8bb35ef731;hpb=b3c05e3e2a4b5cf159a2ab94b1c6696ceeb8c1a8;p=zpackage diff --git a/Makefile b/Makefile index e57ecbc..13b3d2b 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,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-repo zpm-update zpm-confgit +MANPAGES=$(addprefix doc/, zpm.8 zpm-list.8 zpm-contents.8) COMPILED=$(ZPKGBIN) PROGRAMS=$(SCRIPTS) $(COMPILED) @@ -72,11 +73,11 @@ lib/libjsw.a: $(JSWOBJ) ZPM:= ./zpm -P. -zpm-$(ZPMVER)-1.zpm: programs doc/zpm.8 +zpm-$(ZPMVER)-1.zpm: programs $(MANPAGES) 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 + $(ZPM) add -v -u root -g root -f $@ -P /usr/share/man/man8 -S doc $(MANPAGES) tarball: zpm-$(ZPMVER)-1.tar.xz @@ -159,7 +160,7 @@ zpm-parse: zpm-parse.o lib/parse.o zpm-quote: zpm-quote.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -db.sql: schema/main.sql schema/syncconflicts.sql +db.sql: schema/main.sql schema/syncconflicts.sql schema/syncinfo.sql echo 'begin;' > $@ cat $+ >> $@ echo 'commit;' >> $@ @@ -192,11 +193,11 @@ zpm-shell: sqlite/sqlite3.o sqlite/shell.o sqlite/extensions.o lib/vercmp.o libelf.a: elf/libelf.o ar rcuv $@ $? -install: $(COMPILED) doc/zpm.8 +install: $(COMPILED) $(MANPAGES) test -d $(DESTDIR)/sbin || install -d $(DESTDIR)/sbin install $(PROGRAMS) $(DESTDIR)/sbin mkdir -p $(DESTDIR)/usr/share/man/man8 - install -m644 doc/zpm.8 $(DESTDIR)/usr/share/man/man8 + install -m644 $(MANPAGES) $(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