Ideally, the build process shouldn't touch the source directory when
doing VPATH builds. Let's take a small step in that direction.
---
Makefile.am | 2 +-
cfg.mk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 6f217bc..47865f7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -60,7 +60,7 @@ NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.in
| perl -pe 's/[ \t]+$$//' \
$@-t && mv $@-t $@ ; fi
-$(top_srcdir)/HACKING: $(top_srcdir)/docs/hacking1.xsl \
+HACKING: $(top_srcdir)/docs/hacking1.xsl \
$(top_srcdir)/docs/hacking2.xsl \
$(top_srcdir)/docs/wrapstring.xsl \
$(top_srcdir)/docs/hacking.html.in
diff --git a/cfg.mk b/cfg.mk
index a9bba38..93dadcd 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -1068,7 +1068,7 @@ _autogen:
# regenerate HACKING as part of the syntax-check
ifneq ($(_gl-Makefile),)
-syntax-check: $(top_srcdir)/HACKING bracket-spacing-check
+syntax-check: HACKING bracket-spacing-check
endif
bracket-spacing-check:
--
2.4.3