Don't make generated files read-only. That would bother too many
[gnulib.git] / modules / fcntl
1 Description:
2 Like <fcntl.h>, but with non-working flags defined to 0.
3
4 Files:
5 lib/fcntl_.h
6 m4/absolute-header.m4
7 m4/fcntl_h.m4
8
9 Depends-on:
10 unistd
11
12 configure.ac:
13 gl_FCNTL_H
14
15 Makefile.am:
16 BUILT_SOURCES += $(FCNTL_H)
17 EXTRA_DIST += fcntl_.h
18
19 # We need the following in order to create <fcntl.h> when the system
20 # doesn't have one that works with the given compiler.
21 fcntl.h: fcntl_.h
22         rm -f $@-t $@
23         sed -e 's|@''ABSOLUTE_FCNTL_H''@|$(ABSOLUTE_FCNTL_H)|g' \
24             < $(srcdir)/fcntl_.h > $@-t
25         mv $@-t $@
26 MOSTLYCLEANFILES += fcntl.h fcntl.h-t
27
28 Include:
29 #include <fcntl.h>
30
31 License:
32 LGPL
33
34 Maintainer:
35 all