From 4e23ddd4d595d50de4b7fa0ab6bf3533bcf42723 Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 8 Jan 2014 20:14:57 -0600 Subject: [PATCH] Hard-code the config/version.c target, instead of using $@, so its rule works for the distcheck target with Solaris (System V) make. distcheck uses VPATH, causes that make to prepend the VPATH to $@. --- Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 50d494c6..83118f63 100644 --- a/Makefile.am +++ b/Makefile.am @@ -471,8 +471,12 @@ etc_gen_ctype_checked_LDADD = $(POSTLINK) ## ## Our rebuild rules for files that aren't built via the normal mechanisms ## + +## Hard-code the config/version.c target, instead of using $@, so this +## rule works for the distcheck target with Solaris (System V) make. +## distcheck uses VPATH, causes that make to prepend the VPATH to $@. config/version.c: Makefile - sh $(srcdir)/config/version.sh $(VERSION) > $@ + sh $(srcdir)/config/version.sh $(VERSION) > ./config/version.c sbr/sigmsg.h: $(srcdir)/sbr/sigmsg.awk $(SIGNAL_H) $(AWK) -f $(srcdir)/sbr/sigmsg.awk $(SIGNAL_H) > $@ -- 2.56.0