- initial import of revision 374 from cnc
[apt.git] / buildlib / Makefile.am
1
2 all-local: copy-headers
3
4 EXTRA_DIST = \
5              archtable \
6              ostable \
7              config.h.in \
8              gettext.h \
9              inttypes.h \
10              statvfs.h \
11              netdb.h \
12              tools.m4
13
14 CLEANFILES  = $(top_builddir)/include/apti18n.h \
15               $(top_builddir)/include/inttypes.h \
16               $(top_builddir)/include/sys/statvfs.h \
17               $(top_builddir)/include/netdb.h
18
19
20 COPYHEADERS = copy-apti18n
21
22 if NEED_INTTYPES_H
23 COPYHEADERS += copy-inttypes
24 endif
25 if NEED_STATVFS_H
26 COPYHEADERS += copy-statvfs
27 endif
28 if NEED_NETDB_H
29 COPYHEADERS += copy-netdb
30 endif
31
32 copy-headers: $(COPYHEADERS)
33
34 copy-apti18n:
35         @$(mkinstalldirs) $(top_builddir)/include
36         @echo "Copying gettext.h to $(top_builddir)/include/apti18n.h"
37         @cp -f -p $(srcdir)/gettext.h $(top_builddir)/include/apti18n.h
38         
39 copy-inttypes:
40         @echo "Copying inttypes.h to $(top_builddir)/include/inttypes.h"
41         @cp -f -p $(srcdir)/inttypes.h $(top_builddir)/include/inttypes.h
42
43 copy-statvfs:
44         @$(mkinstalldirs) $(top_builddir)/include/sys
45         @echo "Copying statvfs.h to $(top_builddir)/include/sys/statvfs.h"
46         @cp -f -p $(srcdir)/statvfs.h $(top_builddir)/include/sys/statvfs.h
47
48 copy-netdb:
49         @echo "Copying netdb.h to $(top_builddir)/include/netdb.h"
50         @cp -f -p $(srcdir)/netdb.h $(top_builddir)/include/netdb.h