autotools: Added elementary-cxx.pc.in.
[platform/upstream/elementary.git] / Makefile.am
1 SUBDIRS = src data config doc
2
3 if HAVE_PO
4
5 SUBDIRS += po
6
7 endif
8
9 ACLOCAL_AMFLAGS = -I m4
10
11 MAINTAINERCLEANFILES = \
12 ABOUT-NLS \
13 Makefile.in \
14 aclocal.m4 \
15 config.guess \
16 elementary_config.h.in* \
17 config.sub \
18 config.rpath \
19 configure \
20 depcomp \
21 install-sh \
22 ltmain.sh \
23 missing \
24 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
25 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \
26 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \
27 m4/libtool.m4 \
28 m4/lt~obsolete.m4 \
29 m4/ltoptions.m4 \
30 m4/ltsugar.m4 \
31 m4/ltversion.m4 \
32 m4/gettext.m4 \
33 m4/iconv.m4 \
34 m4/lcmessage.m4 \
35 m4/lib-ld.m4 \
36 m4/lib-link.m4 \
37 m4/lib-prefix.m4 \
38 m4/nls.m4 \
39 m4/po.m4 \
40 m4/progtest.m4
41
42 if HAVE_PO
43
44 MAINTAINERCLEANFILES += \
45 po/boldquot.sed \
46 po/en@boldquot.header \
47 po/en@quot.header \
48 po/insert-header.sin \
49 po/Makefile.in.in \
50 po/Makevars.template \
51 po/quot.sed \
52 po/remove-potcdate.sin \
53 po/Rules-quot
54
55 endif
56
57
58
59
60 EXTRA_DIST = \
61 README \
62 AUTHORS \
63 COPYING \
64 COPYING.images \
65 COMPLIANCE \
66 elementary.pc.in \
67 elementary-cxx.pc.in \
68 elementary.spec \
69 elementary.spec.in \
70 m4/efl_binary.m4 \
71 m4/efl_doxygen.m4 \
72 m4/elm_check_backend.m4 \
73 config.rpath \
74 pkgbuild/PKGBUILD
75
76 sed_process = \
77 $(SED) \
78 -e 's,@VERSION\@,$(VERSION),g' \
79 -e 's,@VMAJ\@,$(VMAJ),g' \
80 -e 's,@prefix\@,$(prefix),g' \
81 -e 's,@exec_prefix\@,$(exec_prefix),g' \
82 -e 's,@libdir\@,$(libdir),g' \
83 -e 's,@includedir\@,$(includedir),g' \
84 -e 's,@datarootdir\@,$(datarootdir),g' \
85 -e 's,@datadir\@,$(datadir),g' \
86 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
87 -e 's,@requirement_elm_pc\@,$(requirement_elm_pc),g' \
88 -e 's,@ELEMENTARY_LIBS\@,$(ELEMENTARY_LIBS),g' \
89 < $< > $@ || rm $@
90
91 pc_verbose = $(pc_verbose_@AM_V@)
92 pc_verbose_ = $(pc_verbose_@AM_DEFAULT_V@)
93 pc_verbose_0 = @echo "  PC      " $@;
94
95 elementary.pc: $(top_srcdir)/elementary.pc.in Makefile
96         $(AM_V_at)rm -f $@
97         $(pc_verbose)$(sed_process)
98
99 elementary-cxx.pc: $(top_srcdir)/elementary-cxx.pc.in Makefile
100         $(AM_V_at)rm -f $@
101         $(pc_verbose)$(sed_process)
102
103 if HAVE_FREEBSD
104 pkgconfigdir = $(libdir)data/pkgconfig
105 else
106 pkgconfigdir = $(libdir)/pkgconfig
107 endif
108
109 pkgconfig_DATA = elementary.pc elementary-cxx.pc
110
111 CLEANFILES = elementary.pc elementary-cxx.pc
112
113 cmakeconfigdir = $(libdir)/cmake/Elementary
114 cmakeconfig_DATA = \
115 cmakeconfig/ElementaryConfig.cmake \
116 cmakeconfig/ElementaryConfigVersion.cmake
117
118 .PHONY: doc screenshots
119
120 doc:
121         @echo "entering doc/"
122         $(MAKE) -C doc doc
123
124 screenshots: all
125         @echo "entering src/examples/"
126         $(MAKE) -C src/examples screenshots