make-dfsg/GNUmakefile

59 lines
1.3 KiB
Text
Raw Normal View History

1997-08-18 18:11:04 +00:00
# This is a maintainer's-only makefile
1992-01-11 11:09:59 +00:00
#
1997-08-18 18:11:04 +00:00
# It bootstraps a GNU make maintainer's directory
1995-12-12 05:47:27 +00:00
#
1992-01-11 11:09:59 +00:00
1997-08-18 18:11:04 +00:00
.SUFFIXES:
1992-01-11 11:09:59 +00:00
1997-08-27 20:30:54 +00:00
NORECURSE = true
1998-10-03 05:39:55 +00:00
ACLOCALARGS =
CFLAGS = -g -O -Wall -D__USE_FIXED_PROTOTYPES__
export CFLAGS
1998-07-30 20:54:47 +00:00
# If the user asked for a specific target, invoke the Makefile instead.
1997-08-27 20:30:54 +00:00
#
1997-08-18 18:11:04 +00:00
.DEFAULT:
1997-08-27 20:30:54 +00:00
@[ -f Makefile.in -a -f configure -a -f aclocal.m4 -a -f config.h.in ] \
|| $(MAKE) __cfg NORECURSE=
@[ -f Makefile ] \
1998-10-03 05:39:55 +00:00
|| CFLAGS='-g -O -Wall -D__USE_FIXED_PROTOTYPES__' ./configure
1997-08-18 18:11:04 +00:00
$(MAKE) -f Makefile $@
1993-03-28 22:36:05 +00:00
1998-07-30 20:54:47 +00:00
.PHONY: __cfg __cfg_basic
1992-06-22 20:34:05 +00:00
1997-08-27 20:30:54 +00:00
# This is variable since the glob subdirectory doesn't use it.
#
1997-08-18 18:11:04 +00:00
ACCONFIG = acconfig.h
1993-03-28 22:36:05 +00:00
1997-08-27 20:30:54 +00:00
__cfg: __cfg_basic config.h.in TAGS
ifdef NORECURSE
1998-10-03 05:39:55 +00:00
@echo ""; echo "Now you should run:"; echo ""; \
echo " make all"; echo ""; \
echo "then, optionally, one of:"; echo ""; \
1997-08-27 20:30:54 +00:00
echo " make dist"; \
echo " make distdir"; \
1998-10-03 05:39:55 +00:00
echo " make distcheck"; \
1997-08-27 20:30:54 +00:00
echo ""
endif
1992-01-11 11:09:59 +00:00
1997-08-18 18:11:04 +00:00
__cfg_basic: aclocal.m4 stamp-h.in configure Makefile.in
1997-04-07 07:21:16 +00:00
1998-07-30 20:54:47 +00:00
aclocal.m4: configure.in $(wildcard acinclude.m4)
1998-10-03 05:39:55 +00:00
aclocal $(ACLOCALARGS)
1994-02-16 23:58:49 +00:00
1997-08-18 18:11:04 +00:00
config.h.in: stamp-h.in
stamp-h.in: configure.in aclocal.m4 $(ACCONFIG)
autoheader
echo timestamp > $@
1993-03-29 19:30:33 +00:00
configure: configure.in aclocal.m4
1998-10-03 05:39:55 +00:00
autoconf $(ACARGS)
1992-01-11 11:09:59 +00:00
1997-08-18 18:11:04 +00:00
Makefile.in: configure.in config.h.in Makefile.am aclocal.m4
automake --add-missing
1997-08-27 20:30:54 +00:00
TAGS:
find . -name '*.[ch]' -print | etags -