diff options
author | Bruno Haible <bruno@clisp.org> | 2003-06-07 16:41:48 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2003-06-07 16:41:48 +0000 |
commit | 7e4a3ea582fe5a1224685a0bc852e22f91f18abc (patch) | |
tree | 799fed7b1dab6535fceaaf8daccc68f9b7831c8f /modules/fnmatch | |
parent | b1b2c3c4f7044468da7cd4c99b7cfa594c5c9c9c (diff) | |
download | gnulib-7e4a3ea582fe5a1224685a0bc852e22f91f18abc.tar.gz |
Make .h file creation more reliable.
Diffstat (limited to 'modules/fnmatch')
-rw-r--r-- | modules/fnmatch | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/fnmatch b/modules/fnmatch index dfec965ac9..75e5189f1e 100644 --- a/modules/fnmatch +++ b/modules/fnmatch @@ -15,9 +15,15 @@ configure.ac: # No macro. You should also use one of fnmatch-posix or fnmatch-gnu. Makefile.am: -lib_SOURCES += fnmatch_.h -EXTRA_DIST += fnmatch_loop.c -DISTCLEANFILES += fnmatch.h +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@ +fnmatch.h: fnmatch_.h + cp $(srcdir)/fnmatch_.h fnmatch.h-t + mv fnmatch.h-t fnmatch.h +MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t Include: <fnmatch.h> |