aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-05-13 20:42:52 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-05-13 20:44:18 +0200
commitf43e14906743c2940487494ad3f9925408e78cba (patch)
treec38c4ca5a1774198f869d368767e295257a503f3 /Makefile
parent67f9cf8a9393440aa715be8c18d399f6394d07b8 (diff)
downloadpacredir-f43e14906743c2940487494ad3f9925408e78cba.tar.gz
pacredir-f43e14906743c2940487494ad3f9925408e78cba.tar.zst
prepare for reproducible builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 800d0b8..f411f4b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
# pacredir - redirect pacman requests, assisted by avahi service discovery
-PREFIX := /usr
+PREFIX := /usr
+REPRODUCIBLE := 0
# commands
CC := gcc
@@ -34,7 +35,7 @@ arch: arch.c arch.h
$(CC) $(CFLAGS) $(LDFLAGS) -o arch arch.c
pacredir: pacredir.c arch.h pacredir.h config.h version.h
- $(CC) $(CFLAGS) $(CFLAGS_EXTRA) $(LDFLAGS) -DID=\"$(ID)\" -o pacredir pacredir.c
+ $(CC) $(CFLAGS) $(CFLAGS_EXTRA) $(LDFLAGS) -DREPRODUCIBLE=$(REPRODUCIBLE) -DID=\"$(ID)\" -o pacredir pacredir.c
config.h:
$(CP) config.def.h config.h