1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Marc Haber <mh+debian-packages@zugschlus.de>
Date: Sun, 31 Aug 2025 15:37:31 +0200
Subject: sort wildcard output to help with reproducibility
Forwarded: https://github.com/markfasheh/duperemove/issues/390
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 84e1bce..e59b2ae 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ MANPAGES=duperemove.8 btrfs-extent-same.8 hashstats.8 show-shared-extents.8
ZSH_COMPLETION=completion/zsh/_duperemove
# tests.c is ulgy: it includes lots of c files, to get access to inlined code
-CFILES = $(filter-out tests.c,$(wildcard *.c))
+CFILES = $(filter-out tests.c,$(sort $(wildcard *.c)))
DEPENDS := $(CFILES:.c=.d)
OBJECTS := $(CFILES:.c=.o)
install_progs = duperemove hashstats btrfs-extent-same
@@ -17,7 +17,7 @@ progs = $(install_progs) csum-test
PROGS_OBJECTS := $(addsuffix .o,$(basename $(progs)))
SHARED_OBJECTS := $(filter-out $(PROGS_OBJECTS),$(OBJECTS))
-DIST_SOURCES:=$(CFILES) $(wildcard *.h) LICENSE Makefile \
+DIST_SOURCES:=$(CFILES) $(sort $(wildcard *.h)) LICENSE Makefile \
rbtree.txt README.md $(MANPAGES) SubmittingPatches docs/duperemove.html
DIST=duperemove-$(VERSION)
DIST_TARBALL=$(VERSION).tar.gz
|