tools: Improve pretty-printing of tags
[platform/upstream/gstreamer.git] / tools / Makefile.am
1 bin_SCRIPTS = \
2         gst-visualise-@GST_MAJORMINOR@
3
4 man_MANS = \
5         gst-visualise-@GST_MAJORMINOR@.1
6
7 bin_PROGRAMS = \
8         gst-discoverer-@GST_MAJORMINOR@
9
10 gst_discoverer_@GST_MAJORMINOR@_SOURCES = gst-discoverer.c
11
12 CLEANFILES = $(man_MANS) $(bin_SCRIPTS) $(bin_PROGRAMS)
13
14 EXTRA_DIST = \
15         gst-visualise-m.m gst-visualise.1.in
16
17
18 LDADD = $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_MAJORMINOR@.la\
19         $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la\
20         $(GST_BASE_LIBS) $(GST_LIBS)
21
22 AM_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
23
24 # generate versioned scripts from templates
25 %-@GST_MAJORMINOR@: %-m.m
26         $(AM_V_GEN)sed -e s,\@GST_MAJORMINOR\@,@GST_MAJORMINOR@,g $< > $@ && \
27         chmod +x $@
28
29 # generate man pages
30 %-@GST_MAJORMINOR@.1: %.1.in
31         $(AM_V_GEN)sed \
32                 -e s,gst-visualise,gst-visualise-@GST_MAJORMINOR@,g \
33                 $< >$@
34
35 all: all-am chmod
36
37 chmod: $(bin_SCRIPTS)
38         @chmod +x $^