summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1997-08-27 20:30:54 +0000
committerPaul Smith <psmith@gnu.org>1997-08-27 20:30:54 +0000
commitbe3fb0ae6d6870dbc1b4d03447afcf3b0fed3114 (patch)
treef27c2e1c6f3e1f7cc747cad0452734c4c917b208 /GNUmakefile
parentdd0c939e781596fec17f8c72cbe6e3559e703fd8 (diff)
downloadgunmake-be3fb0ae6d6870dbc1b4d03447afcf3b0fed3114.tar.gz
Updates for GNU make 3.75.92.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile27
1 files changed, 24 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 272e37b..aedde59 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -5,16 +5,34 @@
.SUFFIXES:
+NORECURSE = true
+
+# If the user asked for a specific target, invoke the Mkaefile instead.
+#
.DEFAULT:
- [ -f Makefile ] || ./configure
+ @[ -f Makefile.in -a -f configure -a -f aclocal.m4 -a -f config.h.in ] \
+ || $(MAKE) __cfg NORECURSE=
+ @[ -f Makefile ] \
+ || ./configure
$(MAKE) -f Makefile $@
-.PHONY: __cfg __cfg_basic
+.PHONY: __cfg __cfg_basic TAGS
+# This is variable since the glob subdirectory doesn't use it.
+#
ACCONFIG = acconfig.h
-__cfg: __cfg_basic config.h.in
+__cfg: __cfg_basic config.h.in TAGS
cd glob && $(MAKE) -f ../GNUmakefile __cfg_basic ACCONFIG=
+ifdef NORECURSE
+ @echo ""; echo "Now you should run one of:"; echo ""; \
+ echo " make all"; \
+ echo " make dist"; \
+ echo " make distdir"; \
+ echo " make distcheck"; echo ""; \
+ echo "Or similar to proceed.";\
+ echo ""
+endif
__cfg_basic: aclocal.m4 stamp-h.in configure Makefile.in
@@ -31,3 +49,6 @@ configure: configure.in aclocal.m4
Makefile.in: configure.in config.h.in Makefile.am aclocal.m4
automake --add-missing
+
+TAGS:
+ find . -name '*.[ch]' -print | etags -