]> diplodocus.org Git - nmh/commitdiff
Hard-code the config/version.c target, instead of using $@, so its
authorDavid Levine <levinedl@acm.org>
Thu, 9 Jan 2014 02:14:57 +0000 (20:14 -0600)
committerDavid Levine <levinedl@acm.org>
Thu, 9 Jan 2014 02:14:57 +0000 (20:14 -0600)
rule works for the distcheck target with Solaris (System V) make.
distcheck uses VPATH, causes that make to prepend the VPATH to $@.

Makefile.am

index 50d494c67f2b6838c8275dabb31e2b09fb915ba2..83118f63a0f8a179ef59b6cf08316e39da45989a 100644 (file)
@@ -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) > $@