Use the e.g., `$(FNMATCH_H)' notation for AC_REPLACED
authorJim Meyering <jim@meyering.net>
Sat, 9 Aug 2003 10:44:06 +0000 (10:44 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 9 Aug 2003 10:44:06 +0000 (10:44 +0000)
variable names, rather than @FNMATCH_H@.
Likewise for $(ALLOCA_H).
(fnmatch.h): Use `$@' in the commands, in place of the three copies
of the literal target, `fnmatch.h'.
(alloca.h): Likewise.

lib/Makefile.am

index c700f7c..71ae877 100644 (file)
@@ -201,10 +201,10 @@ EXTRA_DIST += alloca_.h
 
 # We need the following in order to create an <alloca.h> when the system
 # doesn't have one that works with the given compiler.
-all-local $(lib_OBJECTS): @ALLOCA_H@
+all-local $(lib_OBJECTS): $(ALLOCA_H)
 alloca.h: alloca_.h
-       cp $(srcdir)/alloca_.h alloca.h-t
-       mv alloca.h-t alloca.h
+       cp $(srcdir)/alloca_.h $@-t
+       mv $@-t $@
 MOSTLYCLEANFILES += alloca.h alloca.h-t
 
 BUILT_SOURCES += $(FNMATCH_H)
@@ -212,10 +212,10 @@ EXTRA_DIST += fnmatch_.h fnmatch_loop.c
 
 # We need the following in order to create an <fnmatch.h> when the system
 # doesn't have one that supports the required API.
-all-local $(lib_OBJECTS): @FNMATCH_H@
+all-local $(lib_OBJECTS): $(FNMATCH_H)
 fnmatch.h: fnmatch_.h
-       cp $(srcdir)/fnmatch_.h fnmatch.h-t
-       mv fnmatch.h-t fnmatch.h
+       cp $(srcdir)/fnmatch_.h $@-t
+       mv $@-t $@
 MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
 
 SUFFIXES = .sed .sin