diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-08-02 22:16:31 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2019-08-05 13:23:57 +0200 |
commit | 11dc122ebd3f6acd87fffa0b6bceb8606787d3fe (patch) | |
tree | b79291da4ca42fcb51fa0132fb70498ea5efdbd7 | |
parent | 05ec1133252ffe13af1d3607f0662782b93df419 (diff) | |
download | gnutls-11dc122ebd3f6acd87fffa0b6bceb8606787d3fe.tar.gz |
src/Makefile.am: fix detection of .bak files
This fixes detection in a way to work in builds outside the
source directory.
Resolves: #810
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r-- | src/Makefile.am | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 501bca58c1..b2409fff2e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -275,16 +275,15 @@ SUFFIXES = .stamp .def .c.bak .h.bak if NEED_LIBOPTS # case --enable-local-libopts: We do not call AUTOGEN unless the .bak files are missing .def.stamp: - @b=`echo $@ | sed 's/.stamp$$//'`; \ - if ! test -f $${srcdir}$${b}.c.bak;then \ + $(AM_V_GEN) b=`echo $@ | sed 's/.stamp$$//'`; \ + if ! test -f $(srcdir)/$${b}.c.bak;then \ echo "No .bak files found; will call autogen"; \ - $(AM_V_GEN) $(AUTOGEN) $<; \ + $(AUTOGEN) $<; \ else \ echo "Re-using .bak files"; \ - srcdir=$(srcdir)/; \ rm -f $${b}.c $${b}.h; \ - cp -p $${srcdir}$${b}.c.bak $${b}.c; \ - cp -p $${srcdir}$${b}.h.bak $${b}.h; \ + cp -p $(srcdir)/$${b}.c.bak $${b}.c; \ + cp -p $(srcdir)/$${b}.h.bak $${b}.h; \ fi touch $@ else |