[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: factoring out some common code in bin/Makefile.am
From: |
Paul Eggert |
Subject: |
Re: factoring out some common code in bin/Makefile.am |
Date: |
Fri, 10 Dec 2004 17:25:41 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Alexandre Duret-Lutz <address@hidden> writes:
> Ouch! This and the `$(bin_SCRIPTS): Makefile' rule assume
> autoconf.in is in $(srcdir), but the `autoconf.in:' rule and
> the MOSTLYCLEANFILES definition think it's in builddir.
Thanks for catching that. I fixed it this way:
Index: bin/Makefile.am
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/Makefile.am,v
retrieving revision 1.20
diff -p -u -r1.20 Makefile.am
--- bin/Makefile.am 10 Dec 2004 23:56:45 -0000 1.20
+++ bin/Makefile.am 11 Dec 2004 01:23:53 -0000
@@ -59,14 +59,13 @@ autoconf.in: $(srcdir)/autoconf.as $(m4s
## when the prefix etc. changes. It took quite a while to have these
## rules correct, don't break them!
## Use chmod -w to prevent people from editing the wrong file by accident.
-$(bin_SCRIPTS): Makefile
+autoheader autom4te autoreconf autoscan autoupdate ifnames: Makefile
rm -f $@ address@hidden
$(edit) $(srcdir)/address@hidden >address@hidden
chmod +x address@hidden
chmod a-w address@hidden
mv address@hidden $@
-autoconf: $(srcdir)/autoconf.in
autoheader: $(srcdir)/autoheader.in
autom4te: $(srcdir)/autom4te.in
autoreconf: $(srcdir)/autoreconf.in
@@ -74,6 +73,14 @@ autoscan: $(srcdir)/autoscan.in
autoupdate: $(srcdir)/autoupdate.in
ifnames: $(srcdir)/ifnames.in
+# autoconf.in is in ., not in $(srcdir).
+autoconf: autoconf.in Makefile
+ rm -f $@ address@hidden
+ $(edit) address@hidden >address@hidden
+ chmod +x address@hidden
+ chmod a-w address@hidden
+ mv address@hidden $@
+
## --------------- ##
## Building TAGS. ##