Mark generated files as "DO NOT EDIT".
[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         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's|@''ABSOLUTE_FCNTL_H''@|$(ABSOLUTE_FCNTL_H)|g' \
25               < $(srcdir)/fcntl_.h; \
26         } > $@-t
27         mv $@-t $@
28 MOSTLYCLEANFILES += fcntl.h fcntl.h-t
29
30 Include:
31 #include <fcntl.h>
32
33 License:
34 LGPL
35
36 Maintainer:
37 all