Sun Aug 4 12:52:43 1996 Tom Tromey <tromey@creche.cygnus.com>
+ * automake.in (handle_dist_worker): Use fgrep, not grep.
+
+ * m4/AM_C_PROTOTYPES.m4: Changes from François Pinard.
+
+ * automake.in (handle_emacs_lisp): Include lisp-clean.am in
+ output.
+ (initialize_global_constants): [install_man_format] Don't hide
+ "ugliness" at install time.
+
+ * lisp-clean.am: New file.
+
+ * tags-clean.am (maintainer-clean-tags): Remove TAGS and ID here.
+
* automake.in (handle_man_pages): Patch from Janos Farkas to fix
bug when installing man pages. Test man.test.
(initialize_global_constants): [install_man_format] Make sure man
page can actually be found in either source or build dirs.
+ (handle_dist_worker): Use "755" permissions on distdir.
* automake.in (handle_dist): Allow chmod's to fail.
(am_primary_prefixes): New function.
remake.am scripts.am subdirs.am tags.am tags-subd.am tags-clean.am \
texi-version.am texinfos-vars.am texinfos.am libraries-clean.am \
programs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
-ansi2knr.1 aclocal.m4 lisp.am
+ansi2knr.1 aclocal.m4 lisp.am lisp-clean.am
## These must all be executable when installed.
pkgdata_SCRIPTS = config.guess config.sub install-sh mdate-sh \
remake.am scripts.am subdirs.am tags.am tags-subd.am tags-clean.am \
texi-version.am texinfos-vars.am texinfos.am libraries-clean.am \
programs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
-ansi2knr.1 aclocal.m4 lisp.am
+ansi2knr.1 aclocal.m4 lisp.am lisp-clean.am
pkgdata_SCRIPTS = config.guess config.sub install-sh mdate-sh \
mkinstalldirs elisp-comp
DATA = $(pkgdata_DATA)
DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
-Makefile.in NEWS README THANKS TODO aclocal.in aclocal.m4 automake.in \
-config.guess config.sub configure configure.in install-sh mdate-sh \
-mkinstalldirs stamp-vti texinfo.tex version.texi
+Makefile.in NEWS README THANKS TODO aclocal.in aclocal.m4 ansi2knr.1 \
+ansi2knr.c automake.in config.guess config.sub configure configure.in \
+install-sh mdate-sh mkinstalldirs stamp-vti texinfo.tex version.texi
PACKAGE = @PACKAGE@
maintainer-clean-recursive:
for subdir in $(SUBDIRS); do \
target=`echo $@ | sed s/-recursive//`; \
- echo making $$target in $$subdir; \
(cd $$subdir && $(MAKE) $$target) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
echo "$(distdir).tar.gz is ready for distribution"; \
echo "========================"
dist: distdir
- chmod -R a+r $(distdir)
+ -chmod -R a+r $(distdir)
$(TAR) chozf $(distdir).tar.gz $(distdir)
rm -rf $(distdir)
distdir: $(DEP_DISTFILES)
David> of like how Autoconf uses diversions to force initialization
David> code to the top of configure.
+Janos Farkas says:
+ suidbins = su
+ suidubins = chage cfhn etc etc
+ noinst_PROGRAMS = grpconv pwconv id groups $(suidbins) $(suidubins)
+... should work.
+
+Karl Berry says:
+Karl> 2) Your Makefile variable names are generally uppercase, but GNU
+Karl> generally uses lowercase. Not that it matters :-).
================================================================
{
# For Gnits users, this is pretty handy. Look at 15 lines
# in case some explanatory text is desirable.
- $output_rules .= ' @if sed 15q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \\
+ $output_rules .= ' @if sed 15q $(srcdir)/NEWS | fgrep -e "$(VERSION)" > /dev/null; then :; else \\
echo "NEWS not updated; not releasing" 1>&2; \\
exit 1; \\
fi
# Create dist directory.
' rm -rf $(distdir)
mkdir $(distdir)
- chmod 777 $(distdir)
+ -chmod 755 $(distdir)
';
# Only run automake in `dist' target if --include-deps not
test -d $(distdir)/$$subdir \\
|| mkdir $(distdir)/$$subdir \\
|| exit 1; \\
- chmod 777 $(distdir)/$$subdir; \\
+ -chmod 755 $(distdir)/$$subdir; \\
(cd $$subdir && $(MAKE) distdir=../$(distdir)/$$subdir distdir) \\
|| exit 1; \\
done
grep ($_ .= 'c', @elfiles);
&pretty_print ('ELCFILES =', '', @elfiles);
+ push (@clean, 'lisp');
+ &push_phony_cleaners ('lisp');
+
local ($varname);
if (&variable_defined ('lisp_LISP'))
{
{
$varname = 'noinst_LISP';
}
- &require_file_with_line ($varname, $FOREIGN, 'elisp-comp');
+ &require_file_with_line ($varname, $FOREIGN, 'elisp-comp');
}
}
# Helper text for dealing with man pages.
$install_man_format =
- ' @sect=@SECTION@; \\
+ ' sect=@SECTION@; \\
inst=`echo "@MANBASE@" | sed \'$(transform)\'`.@FULLSECT@; \\
- echo installing @MAN@ as $(mandir)/man$$sect/$$inst; \\
if test -f $(srcdir)/@MAN@; then file=$(srcdir)/@MAN@; \\
else file=@MAN@; fi; \\
$(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst
remake.am scripts.am subdirs.am tags.am tags-subd.am tags-clean.am \
texi-version.am texinfos-vars.am texinfos.am libraries-clean.am \
programs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
-ansi2knr.1 aclocal.m4 lisp.am
+ansi2knr.1 aclocal.m4 lisp.am lisp-clean.am
## These must all be executable when installed.
pkgdata_SCRIPTS = config.guess config.sub install-sh mdate-sh \
--- /dev/null
+## automake - create Makefile.in from Makefile.am
+## Copyright (C) 1996 Free Software Foundation, Inc.
+
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2, or (at your option)
+## any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+## 02111-1307, USA.
+mostlyclean-lisp:
+
+clean-lisp:
+ test -z "$(ELCFILES)" || rm -f $(ELCFILES)
+
+distclean-lisp:
+
+maintainer-clean-lisp:
AC_DEFUN(AM_C_PROTOTYPES,
[AC_REQUIRE([AM_PROG_CC_STDC])
+AC_BEFORE([$0], [AC_C_INLINE])
AC_MSG_CHECKING([for function prototypes])
if test "$ac_cv_prog_cc_stdc" != no; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
U=_ ANSI2KNR=./ansi2knr
+ # Ensure some checks needed by ansi2knr itself.
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS(string.h)
fi
AC_SUBST(U)dnl
AC_SUBST(ANSI2KNR)dnl
clean-tags:
distclean-tags:
- rm -f TAGS ID
+## The GNU Standards mandates that tags files be removed here.
maintainer-clean-tags:
+ rm -f TAGS ID