[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
VPATH rebuilding of gawk
From: |
Ralf Wildenhues |
Subject: |
VPATH rebuilding of gawk |
Date: |
Sun, 03 Dec 2006 10:03:59 +0100 |
The following patch fixes some issues when rebuilding gawk from a build
tree that is different from the source tree.
Cheers,
Ralf
awklib/ChangeLog:
2006-12-03 Ralf Wildenhues <address@hidden>
* Makefile.am (stamp-eg): Allow rebuilding from a VPATH build.
test/ChangeLog:
2006-12-03 Ralf Wildenhues <address@hidden>
* Makefile.am (Maketests): Allow rebuilding from a VPATH build.
Index: awklib/Makefile.am
===================================================================
RCS file: /cvsroot/gawk/gawk-stable/awklib/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- awklib/Makefile.am 11 Aug 2006 13:14:35 -0000 1.2
+++ awklib/Makefile.am 2 Dec 2006 15:10:21 -0000
@@ -1,7 +1,7 @@
#
# awklib/Makefile.am --- automake input file for gawk
#
-# Copyright (C) 1995-2005 the Free Software Foundation, Inc.
+# Copyright (C) 1995-2006 the Free Software Foundation, Inc.
#
# This file is part of GAWK, the GNU implementation of the
# AWK Programming Language.
@@ -55,11 +55,13 @@
rm -f $(AUXAWK) igawk *.exe
stamp-eg: $(srcdir)/../doc/gawk.texi $(srcdir)/../doc/gawkinet.texi
- mv eg eg.old
- rm -fr stamp-eg
- $(AWK) -f $(srcdir)/extract.awk $(srcdir)/../doc/gawk.texi
$(srcdir)/../doc/gawkinet.texi
- @echo 'some makes are stupid and will not check a directory' > stamp-eg
- @echo 'against a file, so this file is a place holder. gack.' >>
stamp-eg
+ cd $(srcdir) && \
+ mv eg eg.old && \
+ rm -fr stamp-eg && \
+ $(AWK) -f extract.awk ../doc/gawk.texi ../doc/gawkinet.texi
+ @echo 'some makes are stupid and will not check a directory' >
$(srcdir)/stamp-eg
+ @echo 'against a file, so this file is a place holder. gack.' >>
$(srcdir)/stamp-eg
+ cd $(srcdir) && \
if [ -d eg.old ] && [ -d eg.old/CVS ] ; then \
mv eg.old/CVS eg ; \
mv eg.old/data/CVS eg/data ; \
Index: test/Makefile.am
===================================================================
RCS file: /cvsroot/gawk/gawk-stable/test/Makefile.am,v
retrieving revision 1.3
diff -u -r1.3 Makefile.am
--- test/Makefile.am 5 Sep 2006 23:10:55 -0000 1.3
+++ test/Makefile.am 2 Dec 2006 15:10:21 -0000
@@ -1,7 +1,7 @@
#
# test/Makefile.am --- automake input file for gawk
#
-# Copyright (C) 1988-2005 the Free Software Foundation, Inc.
+# Copyright (C) 1988-2006 the Free Software Foundation, Inc.
#
# This file is part of GAWK, the GNU implementation of the
# AWK Programming Language.
@@ -1025,7 +1031,8 @@
include Maketests
$(srcdir)/Maketests: $(srcdir)/Makefile.am $(srcdir)/Gentests
- $(AWK) -f $(srcdir)/Gentests "$(srcdir)/Makefile.am" *.awk *.in >
$(srcdir)/Maketests
+ files=`cd "$(srcdir)" && echo *.awk *.in`; \
+ $(AWK) -f $(srcdir)/Gentests "$(srcdir)/Makefile.am" $$files >
$(srcdir)/Maketests
clean:
rm -fr _* core core.* junk out1 out2 out3 strftime.ok test1 test2 seq *~
- VPATH rebuilding of gawk,
Ralf Wildenhues <=