summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-02-22 07:23:30 +0000
committerPaul Smith <psmith@gnu.org>1999-02-22 07:23:30 +0000
commita66668aabccfbae3e1f22eaeb897b9c7a1e02733 (patch)
treefd4454775a6dcb2d0222f3e65c04f2011547b4ea /read.c
parent84f38c9c6f56c7056a1d1a5abf9151bf15760151 (diff)
downloadgunmake-a66668aabccfbae3e1f22eaeb897b9c7a1e02733.tar.gz
* New feature: .LIBPATTERNS controls the way -lfoo dependencies are expanded.
* A few tweaks to the system glob test, after trying it on a system where it's true. * Installed patches to archive handling for AIX 4.3 big archives. * Fix a memory stomp in target-specific variables. * Fix a memory leak in foreach functions.
Diffstat (limited to 'read.c')
-rw-r--r--read.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/read.c b/read.c
index b5efca2..3303ba9 100644
--- a/read.c
+++ b/read.c
@@ -18,6 +18,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <assert.h>
+#include <glob.h>
+
#include "make.h"
#include "dep.h"
#include "filedef.h"
@@ -26,12 +28,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "variable.h"
#include "rule.h"
-/* This is POSIX.2, but most systems using -DPOSIX probably don't have it. */
-#ifdef HAVE_GLOB_H
-#include <glob.h>
-#else
-#include "glob/glob.h"
-#endif
#ifndef WINDOWS32
#ifndef _AMIGA
@@ -1564,9 +1560,7 @@ record_files (filenames, pattern, pattern_percent, deps, cmds_started,
if (!pattern_matches (pattern, pattern_percent, name))
{
/* Give a warning if the rule is meaningless. */
- error (flocp,
- "target `%s' doesn't match the target pattern",
- name);
+ error (flocp,"target `%s' doesn't match the target pattern", name);
this = 0;
}
else