# Makefile-include to detect and store the current git hash SPXGITHASH = $(shell git describe --always --dirty | sed 's/^.*-g//') .PHONY: githash githash:: # do not remove the double-colon @echo "#define SPX_GITHASH \"$(SPXGITHASH)\"" > $(SPXGITHASHFILE)