From: David Levine Date: Thu, 9 Jan 2014 02:14:57 +0000 (-0600) Subject: Hard-code the config/version.c target, instead of using $@, so its X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/4e23ddd4d595d50de4b7fa0ab6bf3533bcf42723?ds=inline;hp=b3934fc32dd04ef0bbcce846f151f4fdf40bff54 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 $@. --- 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) > $@