summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndreas Fried <andreas.fried@kit.edu>2020-04-29 15:19:17 +0200
committerAndreas Fried <andreas.fried@kit.edu>2020-04-29 15:21:46 +0200
commit8ec1a761bf62be1028632e5eceda425d9fbeb039 (patch)
treea0eb82f1c7bacc97ae2862a5bc0bf05e2021546b
parentb5aab0a87f130db42a056db960c81cd7fd79ce4a (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--Makefile3
m---------libfirm0
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2ae2cf8..610e051 100644
--- a/Makefile
+++ b/Makefile
@@ -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