-plugindir=/dev/null
+## we need to specify the plugindir if we want libtool to build .so files ...
+plugindir=$(libdir)/gst
-plugin_LTLIBRARIES = libexample.la
+plugin_LTLIBRARIES = libgstexample.la
-libexample_la_SOURCES = example.c
-libexample_la_CFLAGS = $(GST_CFLAGS)
-libexample_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+libgstexample_la_SOURCES = example.c
+libgstexample_la_CFLAGS = $(GST_CFLAGS)
+libgstexample_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
noinst_HEADERS = example.h
+
+## ... but we don't want them installed so we override the install target
+install:
+ @true
-plugindir=/dev/null
+## we need to specify the plugindir if we want libtool to build .so files ...
+plugindir=$(libdir)/gst
-plugin_LTLIBRARIES = libexample.la
+plugin_LTLIBRARIES = libgstexample.la
-libexample_la_SOURCES = example.c
-libexample_la_CFLAGS = $(GST_CFLAGS)
-libexample_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+libgstexample_la_SOURCES = example.c
+libgstexample_la_CFLAGS = $(GST_CFLAGS)
+libgstexample_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
noinst_HEADERS = example.h
+
+## ... but we don't want them installed so we override the install target
+install:
+ @true