[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Expanded rules for scripts
From: |
Pavel Roskin |
Subject: |
Expanded rules for scripts |
Date: |
Tue, 12 Dec 2000 19:13:36 -0500 (EST) |
Hello!
This makes OpenBSD incredibly happy :-)
The native make can finally understand what we want from it.
"make distcheck" passes on GNU/Linux.
Unrelated OpenBSD issues will be addressed separately.
ChangeLog:
* Makefile.am: Don't use suffix rules for perl and shell
scripts. Use explicit rules instead.
Regards,
Pavel Roskin
__________________________________
--- Makefile.am
+++ Makefile.am
@@ -22,7 +22,7 @@
SUBDIRS = . m4 man doc tests
-SUFFIXES = .m4 .m4f .pl .sh
+SUFFIXES = .m4 .m4f
## There is currently no means with Automake not to run aclocal.
ACLOCAL_AMFLAGS = --version >/dev/null && touch aclocal.m4
WGET = wget
@@ -107,9 +107,6 @@
## The scripts. ##
## ------------- ##
-# Follow the version number changes.
-$(bin_SCRIPTS): configure.in
-
editsh = sed \
-e 's,@datadir\@,$(pkgdatadir),g' \
-e 's,@M4\@,$(M4),g' \
@@ -127,17 +124,41 @@
-e 's,@VERSION\@,$(VERSION),g' \
-e 's,@PACKAGE\@,$(PACKAGE),g'
-.sh:
- rm -f $@ address@hidden
- $(editsh) $< >address@hidden
- chmod +x address@hidden
- mv address@hidden $@
-
-.pl:
- rm -f $@ address@hidden
- $(editpl) $< >address@hidden
- chmod +x address@hidden
- mv address@hidden $@
+autoconf: $(srcdir)/autoconf.sh $(srcdir)/configure.in
+ rm -f autoconf autoconf.tmp
+ $(editsh) $(srcdir)/autoconf.sh >autoconf.tmp
+ chmod +x autoconf.tmp
+ mv autoconf.tmp autoconf
+
+autoheader: $(srcdir)/autoheader.sh $(srcdir)/configure.in
+ rm -f autoheader autoheader.tmp
+ $(editsh) $(srcdir)/autoheader.sh >autoheader.tmp
+ chmod +x autoheader.tmp
+ mv autoheader.tmp autoheader
+
+autoreconf: $(srcdir)/autoreconf.sh $(srcdir)/configure.in
+ rm -f autoreconf autoreconf.tmp
+ $(editsh) $(srcdir)/autoreconf.sh >autoreconf.tmp
+ chmod +x autoreconf.tmp
+ mv autoreconf.tmp autoreconf
+
+autoupdate: $(srcdir)/autoupdate.sh $(srcdir)/configure.in
+ rm -f autoupdate autoupdate.tmp
+ $(editsh) $(srcdir)/autoupdate.sh >autoupdate.tmp
+ chmod +x autoupdate.tmp
+ mv autoupdate.tmp autoupdate
+
+ifnames: $(srcdir)/ifnames.sh $(srcdir)/configure.in
+ rm -f ifnames ifnames.tmp
+ $(editsh) $(srcdir)/ifnames.sh >ifnames.tmp
+ chmod +x ifnames.tmp
+ mv ifnames.tmp ifnames
+
+autoscan: $(srcdir)/autoscan.pl $(srcdir)/configure.in
+ rm -f autoscan autoscan.tmp
+ $(editpl) $(srcdir)/autoscan.pl >autoscan.tmp
+ chmod +x autoscan.tmp
+ mv autoscan.tmp autoscan
## ------------------ ##
__________________________________