move gstreamer-gconf pkgconfig files to pkgconfig/ dir. Make sure they get rebuilt...
[platform/upstream/gstreamer.git] / pkgconfig / Makefile.am
1 if USE_GCONF
2 GCONF_PC=gstreamer-gconf-@GST_MAJORMINOR@.pc
3 GCONF_PC_UNINSTALLED=gstreamer-gconf-@GST_MAJORMINOR@-uninstalled.pc
4 else
5 GCONF_PC=
6 GCONF_PC_UNINSTALLED=
7 endif
8
9 ### all of the standard pc files we need to generate
10 pcfiles =  \
11         $(GCONF_PC) \
12         gstreamer-libs-@GST_MAJORMINOR@.pc \
13         gstreamer-play-@GST_MAJORMINOR@.pc \
14         gstreamer-interfaces-@GST_MAJORMINOR@.pc
15 pcfiles_uninstalled = \
16         $(GCONF_PC_UNINSTALLED) \
17         gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc \
18         gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc \
19         gstreamer-interfaces-@GST_MAJORMINOR@-uninstalled.pc
20
21 pcfiles_gconf = $(GCONF_PC) $(GCONF_PC_UNINSTALLED)
22 all-local: $(pcfiles) $(pcfiles_uninstalled)
23
24 ### how to generate pc files from .pc files in this dir
25 $(pcfiles): %-@GST_MAJORMINOR@.pc: %.pc
26         cp $< $@
27 $(pcfiles_uninstalled): %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
28         cp $< $@
29
30 pkgconfigdir = $(libdir)/pkgconfig
31 pkgconfig_DATA = \
32         $(GCONF_PC) \
33         gstreamer-libs-@GST_MAJORMINOR@.pc \
34         gstreamer-play-@GST_MAJORMINOR@.pc \
35         gstreamer-interfaces-@GST_MAJORMINOR@.pc
36
37 CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)
38 EXTRA_DIST= \
39            gstreamer-gconf.pc.in gstreamer-gconf-uninstalled.pc.in \
40            gstreamer-interfaces.pc.in gstreamer-interfaces-uninstalled.pc.in \
41            gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
42            gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in