From 456271596d5839c1fb8dd151b02643b182ff50f0 Mon Sep 17 00:00:00 2001
From: Volkmar Sieh <Volkmar.Sieh@fau.de>
Date: Wed, 19 Aug 2020 20:03:59 +0200
Subject: [PATCH] Another try to fix Makefile problems.

---
 Makefile.am | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 9a5417d..022826a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -46,10 +46,14 @@ DISTCLEANFILES = config.h
 config.h: Makefile.am
 	echo '#define FAUCCDIR "'$(fauccdir)'"' > config.h
 
-parse.c parse.h: parse.y
+parse.c: parse.y
 	bison -d parse.y
 	mv parse.tab.c parse.c
 	mv parse.tab.h parse.h
+	sed -e 's/parse.tab.h/parse.h/' parse.c > parse.c.tmp
+	mv parse.c.tmp parse.c
+
+parse.h: parse.c
 
 devel: $(top_srcdir)/scripts/install_ln.sh
 	$(MAKE) install INSTALL=$(CURDIR)/$(top_srcdir)/scripts/install_ln.sh
-- 
GitLab