gconf/Makefile.am: Fix for non-GNU make
[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 pcverfiles =  \
11         $(GCONF_PC) \
12         gstreamer-interfaces-@GST_MAJORMINOR@.pc \
13         gstreamer-libs-@GST_MAJORMINOR@.pc \
14         gstreamer-media-info-@GST_MAJORMINOR@.pc \
15         gstreamer-play-@GST_MAJORMINOR@.pc \
16         gstreamer-plugins-@GST_MAJORMINOR@.pc
17 pcverfiles_uninstalled = \
18         $(GCONF_PC_UNINSTALLED) \
19         gstreamer-interfaces-@GST_MAJORMINOR@-uninstalled.pc \
20         gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc \
21         gstreamer-media-info-@GST_MAJORMINOR@-uninstalled.pc \
22         gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc \
23         gstreamer-plugins-@GST_MAJORMINOR@-uninstalled.pc
24
25 pcverfiles_gconf = $(GCONF_PC) $(GCONF_PC_UNINSTALLED)
26 all-local: $(pcverfiles) $(pcverfiles_uninstalled)
27
28 ### how to generate versioned .pc files from .pc files in this dir
29 %-@GST_MAJORMINOR@.pc: %.pc
30         cp $< $@
31 %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
32         cp $< $@
33
34 pkgconfigdir = $(libdir)/pkgconfig
35 pkgconfig_DATA = $(pcverfiles)
36
37 CLEANFILES = $(pcverfiles) $(pcverfiles_uninstalled)
38 pcinfiles = \
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-media-info.pc.in gstreamer-media-info-uninstalled.pc.in \
43            gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in \
44            gstreamer-plugins.pc.in gstreamer-plugins-uninstalled.pc.in
45
46 DISTCLEANFILES = $(pcinfiles:.in=)
47 EXTRA_DIST = $(pcinfiles)