X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/46f35e659f3bc3e808a70263bea0ec72624c8a08..33619bd9279b5496584a85c0be928c6165a998a1:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 7ffcf9b0..37139200 100644 --- a/Makefile.am +++ b/Makefile.am @@ -478,8 +478,8 @@ etc_gen_ctype_checked_LDADD = $(POSTLINK) ## 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) > ./config/version.c +config/version.c: Makefile config/version.sh + env srcdir="$(srcdir)" 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) > $@