+2000-02-02 Assar Westerlund <assar@sics.se>
+
+ * automake.in (handle_single_transform_list): do not use $< which
+ is not handled by all non-GNU makes. Instead do explicit sh code
+ testing for the file in this directory and srcdir. Based on a
+ suggestion by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+
2000-01-12 Tom Tromey <tromey@cygnus.com>
* m4/lispdir.m4: Added --with-lispdir argument processing.
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+
+@SET_MAKE@
AMTAR = @AMTAR@
AMTARFLAGS = @AMTARFLAGS@
AWK = @AWK@
COPYING ChangeLog INSTALL Makefile.am Makefile.in NEWS README-alpha \
THANKS TODO aclocal.in aclocal.m4 ansi2knr.1 ansi2knr.c automake.in \
compile config.guess config.sub configure configure.in depcomp \
-elisp-comp install-sh mdate-sh missing mkinstalldirs stamp-vti \
-texinfo.tex version.texi ylwrap
+elisp-comp install-sh mdate-sh missing mkinstalldirs py-compile \
+stamp-vti texinfo.tex version.texi ylwrap
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
-@SET_MAKE@
-
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive info-recursive dvi-recursive:
dist: distdir
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r $(distdir)
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
dist-all: distdir
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r $(distdir)
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
local ($xform);
($xform = $object) =~ s,/,\\/,g;
$rule =~ s/\$\@/$xform/;
- # FIXME: we use $< in an explicit rule here.
- # We can't use $(srcdir)/<file> because we don't
- # actually know it is in srcdir.
- $rule .= ' $<';
+
+ # We cannot use $< here since this is an explicit
+ # rule and not all makes handle that.
+ $rule .= " \`test -f $full || echo '\$(srcdir)/'\`$full";
+
# FIXME: handle .lo and .obj as well.
$output_rules .= "\t" . $rule . "\n";
}
+2000-02-02 Assar Westerlund <assar@sics.se>
+
+ * target-cflags.test: new test case to target-specific CFLAGS
+
2000-01-08 Tom Tromey <tromey@cygnus.com>
* ansi.test, texinfo.test, empty.test, insh2.test, texinfo8.test:
tags.test \
tagsub.test \
target.test \
+target-cflags.test \
texinfo.test \
texinfo2.test \
texinfo3.test \
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+
+@SET_MAKE@
AMTAR = @AMTAR@
AMTARFLAGS = @AMTARFLAGS@
AWK = @AWK@
tags.test \
tagsub.test \
target.test \
+target-cflags.test \
texinfo.test \
texinfo2.test \
texinfo3.test \
--- /dev/null
+#! /bin/sh
+
+# Test to make sure target specific CFLAGS work
+# Assar Westerlund <assar@sics.se>
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(foo.c)
+AM_INIT_AUTOMAKE(target-cflags,0.0)
+AC_PROG_CC
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+AUTOMAKE_OPTIONS = foreign no-dependencies
+
+bin_PROGRAMS = foo bar
+foo_CFLAGS = -DFOO
+END
+
+cat > foo.c << 'END'
+#include <stdio.h>
+#ifdef FOO
+int main(void) {
+ return 0;
+}
+#endif
+END
+
+cat > bar.c << 'END'
+#ifndef FOO
+int main(void)
+{
+ return 0;
+}
+#endif
+END
+
+# Fail gracefully if no autoconf.
+(autoconf --version) > /dev/null 2>&1 || exit 0
+
+# Likewise for gcc.
+(gcc -v) > /dev/null 2>&1 || exit 0
+
+$ACLOCAL \
+ && autoconf \
+ && $AUTOMAKE -a \
+ && mkdir obj \
+ && (cd obj && ../configure && $MAKE && ./foo && ./bar) \
+ && ./configure && $MAKE && ./foo && ./bar