void-packages/srcpkgs/signify/patches/5c9cbd65a8cc3bb95f690f055a3c50e380e8ef4e.diff
2020-02-22 14:56:10 +01:00

33 lines
723 B
Diff

diff --git a/Makefile b/Makefile
index 36fc5c6..b53744b 100644
--- a/Makefile
+++ b/Makefile
@@ -162,10 +162,12 @@ CFLAGS += $(SECCOMP_CFLAGS) -pthread
LDFLAGS += $(SECCOMP_LIBS) -pthread
S += libwaive/waive.c
+ifneq ($(wildcard .gitmodules),)
libwaive/waive.c: .gitmodules
git submodule init && git submodule update libwaive
touch $@
endif
+endif
ifeq ($(strip $(VERIFY_ONLY)),)
S += ohash.c
@@ -230,6 +232,7 @@ install: signify signify.1.gz
.PHONY: install
+ifneq ($(wildcard .git/),)
GIT_TAG = $(shell git describe --tags HEAD)
dist: T := $(GIT_TAG)
dist: V := $(patsubst v%,%,$T)
@@ -238,6 +241,7 @@ dist:
xz -f9 signify-$V.tar
.PHONY: dist
+endif
check: signify
@sh regress/run