X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=48f6d5671111a750f96bc6ca41f6ad4fe3defe12;hb=73b7f60df7d66ac8cb6072de809e792ebc8cf16f;hp=d517fb2862f4b6973516fa7152e81781661ba30e;hpb=82e3fcbcf22abcd3921a8946e6ac2b5dd948c44e;p=zpackage diff --git a/Makefile b/Makefile index d517fb2..48f6d56 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS=-Wall -W -Wextra -Werror -std=c99 -Ilib -Isqlite -Ielf -I. -Ilzma/api +CFLAGS=-Wall -W -Wextra -Werror -Wno-implicit-fallthrough -std=c99 -Ilib -Isqlite -Ielf -I. -Ilzma/api ZPMVER:=$(shell git tag --list 'v[0-9]*' | sed -e 's/^v//' | sort -nr | head -1) ifeq ($(strip $(ZPMVER)),) @@ -31,14 +31,14 @@ package: zpm-0.1-1.zpm ZPM:= ./zpm -P scripts:bin:. -zpm-0.1-1.zpm: programs scripts +zpm-0.1-1.zpm: programs rm -f $@ ./zpm -P scripts:bin:. newpackage -f $@ -v 0.1 zpm ./zpm -P scripts:bin:. addtopackage -f $@ -P /usr/libexec/zpm -v 0.1 zpm $(PROGRAMS) tarball: zpm-0.1-1.tar.xz -zpm-0.1-1.tar.xz: programs scripts +zpm-0.1-1.tar.xz: programs rm -f $@ tar -cJf $@ --transform='s|^|usr/libexec/zpm/|' \ --transform='s|^usr/libexec/zpm/zpm$$|usr/bin/zpm|' \