Skip to content

Commit

Permalink
Sort input file list
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bmwiedemann committed Mar 18, 2022
1 parent 002e185 commit e2e366c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e2e366c

Please sign in to comment.