Source code upload
[framework/connectivity/libgphoto2.git] / libgphoto2_port / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ## Specify some includes and versioning
4
5 AM_CPPFLAGS = -I@srcdir@ $(VERSION_FLAGS)
6
7 VERSION_FLAGS = -DLIBGPPORT_VERSION=\"@LIBGPPORT_VERSION@\" -DHAVE_TERMIOS_H
8
9 ## Executable files
10 bin_SCRIPTS = gphoto2-port-config
11
12 # Note: @subdirs@ lists all the directories from AC_CONFIG_SUBDIRS()
13 SUBDIRS = po libgphoto2_port test @IOLIB_SUBDIRS@ doc m4
14
15 EXTRA_DIST =            \
16         AUTHORS \
17         ChangeLog \
18         COPYING.LIB \
19         NEWS \
20         README \
21         iolib.sym \
22         gphoto2-port-config.in
23
24 doc_DATA = AUTHORS README NEWS
25
26 ACLOCAL_AMFLAGS = -I auto-m4 -I m4
27
28 EXTRA_DIST    += libgphoto2_port.pc.in
29 pkgconfig_DATA = libgphoto2_port.pc
30
31 EXTRA_DIST += libgphoto2_port-uninstalled.pc.in
32 noinst_DATA = libgphoto2_port-uninstalled.pc
33
34
35 # ship headers
36 nobase_include_HEADERS =        \
37         gphoto2/gphoto2-port.h                  \
38         gphoto2/gphoto2-port-info-list.h        \
39         gphoto2/gphoto2-port-log.h              \
40         gphoto2/gphoto2-port-version.h          \
41         gphoto2/gphoto2-port-portability.h      \
42         gphoto2/gphoto2-port-result.h
43
44 EXTRA_DIST += gphoto2/gphoto2-port-library.h
45
46
47 # Compatibility for header inclusions.
48 #
49 # - Old code has -I/usr/include/gphoto2
50 #   #include <gphoto2-camera.h>
51 #
52 # - New code has -I/usr/include
53 #   #include <gphoto2/gphoto2-camera.h>
54
55 install-data-local:
56         rm -f $(DESTDIR)$(includedir)/gphoto2/gphoto2
57         $(INSTALL) -m 0755 -d $(DESTDIR)$(includedir)/gphoto2
58         $(LN_S) . $(DESTDIR)$(includedir)/gphoto2/gphoto2
59
60 uninstall-local:
61         rm -f $(DESTDIR)$(includedir)/gphoto2/gphoto2