X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=1a4b2b6bcc647703e862d4a6fb65ba3fbb288256;hb=e88d7fd4b079dc423ac628539ee891fe6504f6ba;hp=4ad7edbce9d1bdea1119d733361c4909bdc6dc56;hpb=de3ce49c093f0c274d2921fa90ad829e1fc4a5f9;p=zpackage diff --git a/Makefile b/Makefile index 4ad7edb..1a4b2b6 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-repo + zpm-pkg zpm-add zpm-pkgfile zpm-gc zpm-repo zpm-update zpm-confgit COMPILED=$(ZPKGBIN) PROGRAMS=$(SCRIPTS) $(COMPILED) @@ -159,6 +159,11 @@ 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 schema/syncinfo.sql + echo 'begin;' > $@ + cat $+ >> $@ + echo 'commit;' >> $@ + newdb.c: db.sql echo "char createdb[] = {" > $@ xxd -i < $< >> $@ @@ -190,7 +195,7 @@ libelf.a: elf/libelf.o install: $(COMPILED) doc/zpm.8 test -d $(DESTDIR)/sbin || install -d $(DESTDIR)/sbin install $(PROGRAMS) $(DESTDIR)/sbin - mkdir $(DESTDIR)/usr/share/man/man8 + mkdir -p $(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 @@ -200,4 +205,5 @@ clean: rm -f *.o sqlite/*.o lib/*.o $(LZMAOBJ) liblzma.a \ libelf.a libzpm.a zpm-addfile soname \ *.xz \ - local.db t/ctap/prove.o $(ZPKGBIN) + local.db t/ctap/prove.o $(ZPKGBIN) \ + db.sql