diff --git a/Makefile.am b/Makefile.am index f7b597a..93699dd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -187,9 +187,11 @@ CLEANFILES += $(SOURCES) $(trexio_f) $(trexio_h) BUILT_SOURCES += $(SOURCES) $(trexio_f) $(test_trexio_f) -.git_hash: +.git_hash: FORCE git log | head -1 | cut -d ' ' -f 2 > .git_hash +all: .git_hash + $(SOURCES): $(trexio_f) src/trexio.c: $(trexio_h) @@ -260,3 +262,4 @@ CLEANFILES += $(pytrexio_c) \ endif +.PHONY: FORCE