diff options
author | Andreas Fried <andreas.fried@kit.edu> | 2020-04-29 15:19:17 +0200 |
---|---|---|
committer | Andreas Fried <andreas.fried@kit.edu> | 2020-04-29 15:21:46 +0200 |
commit | 8ec1a761bf62be1028632e5eceda425d9fbeb039 (patch) | |
tree | a0eb82f1c7bacc97ae2862a5bc0bf05e2021546b | |
parent | b5aab0a87f130db42a056db960c81cd7fd79ce4a (diff) |
Make Makefile portable between make 4.2 and 4.3.
See https://lists.gnu.org/archive/html/bug-make/2020-01/msg00057.html
for an explanation and the recommended workaround.
-rw-r--r-- | Makefile | 3 | ||||
m--------- | libfirm | 0 |
2 files changed, 2 insertions, 1 deletions
@@ -91,8 +91,9 @@ REVISION ?= $(shell git --git-dir $(top_srcdir)/.git describe --abbrev=40 --alwa SELFCHECK_FLAGS ?= -Wall -Wno-shadow -Werror # Update revision.h if necessary +HASH := \# UNUSED := $(shell \ - REV="\#define cparser_REVISION \"$(REVISION)\""; \ + REV="$(HASH)define cparser_REVISION \"$(REVISION)\""; \ echo "$$REV" | cmp -s - $(REVISIONH) 2> /dev/null || echo "$$REV" > $(REVISIONH) \ ) # determine if we can use "cparser-beta" as quickcheck diff --git a/libfirm b/libfirm -Subproject f9a9fc7dc7c74ead22e15b1be6ce6f990219f45 +Subproject b7f2ed734453a3185d07738016119544da27b9e |