Sort input file list

so that btop builds in a reproducible way
in spite of indeterministic filesystem readdir order

See https://reproducible-builds.org/ for why this is good.
This commit is contained in:
Bernhard M. Wiedemann 2022-02-13 03:51:13 +01:00
parent 18457d1181
commit f9a7cdbe09
No known key found for this signature in database
GPG key ID: 5DA2F379DDDF022E

View file

@ -129,9 +129,9 @@ ifdef DEBUG
override OPTFLAGS := -O0 -g
endif
SOURCES := $(shell find $(SRCDIR) -maxdepth 1 -type f -name *.$(SRCEXT))
SOURCES := $(sort $(shell find $(SRCDIR) -maxdepth 1 -type f -name *.$(SRCEXT)))
SOURCES += $(shell find $(SRCDIR)/$(PLATFORM_DIR) -type f -name *.$(SRCEXT))
SOURCES += $(sort $(shell find $(SRCDIR)/$(PLATFORM_DIR) -type f -name *.$(SRCEXT)))
SOURCE_COUNT := $(words $(SOURCES))