Sort input file list

so that `epub2txt` 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-03-18 19:51:22 +01:00
parent 002e1859b4
commit e2e366c0b3

View File

@@ -9,7 +9,7 @@ MANDIR := /share/man
APPNAME := epub2txt
TARGET := epub2txt
SOURCES := $(shell find src/ -type f -name *.c)
SOURCES := $(sort $(shell find src/ -type f -name *.c))
OBJECTS := $(patsubst src/%,build/%,$(SOURCES:.c=.o))
DEPS := $(OBJECTS:.o=.deps)