summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am18
-rw-r--r--idiottest.mak15
-rw-r--r--include/Makefile.am4
3 files changed, 22 insertions, 15 deletions
diff --git a/Makefile.am b/Makefile.am
index 2b1453085c..e81b6ee476 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,7 +34,8 @@ man_MANS = gstreamer-config.1
EXTRA_DIST = gstreamer.spec.in gstreamer-config.in gstreamer.m4 \
gstreamer.pc.in gstreamer-uninstalled.pc.in \
configure.base autogen.sh \
- LICENSE REQUIREMENTS ABOUT-NLS $(man_MANS)
+ LICENSE REQUIREMENTS ABOUT-NLS $(man_MANS) \
+ idiottest.mak
dist-hook:
cp gstreamer.spec $(distdir)
@@ -42,20 +43,7 @@ dist-hook:
rpm: dist
rpm -ta $(distdir).tar.gz
-# Idiot test to stop the installing of versions with plugin srcdir enabled
-install-exec-hook:
-if PLUGINS_USE_SRCDIR
- @echo "*** ERROR: Cannot install:" 2>&1
- @echo "GStreamer was configured using the --enable-plugin-srcdir option." 2>&1
- @echo
- @echo "This option is for development purposes only: binaries built with" 2>&1
- @echo "it should be used with code in the build tree only. To build an"
- @echo "installable version, use ./configure without the --enable-plugin-srcdir"
- @echo "option. Note that the autogen.sh script supplies the plugin srcdir"
- @echo "option automatically - it cannot be used to configure installable builds"
- @echo
- @/bin/false
-endif
+include $(top_srcdir)/idiottest.mak
# Rules to generate autoconf scripts if configure.base is updated
$(top_srcdir)/configure.in: $(top_srcdir)/configure.base
diff --git a/idiottest.mak b/idiottest.mak
new file mode 100644
index 0000000000..444a5f3d74
--- /dev/null
+++ b/idiottest.mak
@@ -0,0 +1,15 @@
+# Idiot test to stop the installing of versions with plugin srcdir enabled
+install-exec-local:
+if PLUGINS_USE_SRCDIR
+ @echo "*** ERROR: Cannot install:" 2>&1
+ @echo "GStreamer was configured using the --enable-plugin-srcdir option." 2>&1
+ @echo
+ @echo "This option is for development purposes only: binaries built with" 2>&1
+ @echo "it should be used with code in the build tree only. To build an"
+ @echo "installable version, use ./configure without the --enable-plugin-srcdir"
+ @echo "option. Note that the autogen.sh script supplies the plugin srcdir"
+ @echo "option automatically - it cannot be used to configure installable builds"
+ @echo
+ @/bin/false
+endif
+
diff --git a/include/Makefile.am b/include/Makefile.am
index 406b0b3c1d..3aac1d18d5 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -4,3 +4,7 @@ noinst_HEADERS = \
mmx.h \
sse.h \
gstaudio.h
+
+# This test needs to go here because this is the first makefile which the
+# install target gets run in.
+include $(top_srcdir)/idiottest.mak