more uninstalled fixes
[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         gstreamer-libs-@GST_MAJORMINOR@.pc \
12         gstreamer-play-@GST_MAJORMINOR@.pc
13 pcfiles_uninstalled = \
14         gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc \
15         gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc
16
17 pcfiles_gconf = $(GCONF_PC) $(GCONF_PC_UNINSTALLED)
18 all-local: $(pcfiles) $(pcfiles_uninstalled) $(pcfiles_gconf)
19
20 ### how to generate pc files from .pc files in this dir
21 $(pcfiles): %-@GST_MAJORMINOR@.pc: %.pc
22         cp $< $@
23 $(pcfiles_uninstalled): %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
24         cp $< $@
25
26 ### how to generate gconf dir pc files from their pc.in files
27 ### somebody smart could figure out how to fold this back into one rule
28 $(srcdir)/../gst-libs/gst/gconf/gstreamer-gconf*.pc:
29         cd $(srcdir)/../gst-libs/gst/gconf && make gstreamer-gconf.pc gstreamer-gconf-uninstalled.pc
30
31 ### how to generate pc files from base .pc file in other dir
32 $(pcfiles_gconf): gstreamer-gconf-@GST_MAJORMINOR@%.pc: \
33         $(srcdir)/../gst-libs/gst/gconf/gstreamer-gconf%.pc
34         cp $< $@
35
36 pkgconfigdir = $(libdir)/pkgconfig
37 pkgconfig_DATA = \
38         $(GCONF_PC) \
39         gstreamer-libs-@GST_MAJORMINOR@.pc \
40         gstreamer-play-@GST_MAJORMINOR@.pc
41
42 CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)
43 EXTRA_DIST= \
44            gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
45            gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in