Fixed shell in docs/gst/Makefile.am and docs/libs/Makefile.am so that it works with...
authorBrian Cameron <brian.cameron@sun.com>
Fri, 19 Dec 2003 20:27:03 +0000 (20:27 +0000)
committerBrian Cameron <brian.cameron@sun.com>
Fri, 19 Dec 2003 20:27:03 +0000 (20:27 +0000)
Original commit message from CVS:
Fixed shell in docs/gst/Makefile.am and docs/libs/Makefile.am so that
it works with Solaris /bin/sh.  Fixed gst/gstplugin.c so it compiles
properly when the configure --disable-gst_debug option is used.
Fixed gst/parse/Makefile.am so that it doesn't append grammar.tab.h to
the end of lex._gst_parse_yy.c since lex._gst_parse_yy.c already
includes grammar.tab.h via a <#include ...> line.

docs/gst/Makefile.am
docs/libs/Makefile.am
gst/gstplugin.c
gst/parse/Makefile.am

index 3fd4954..9f2547e 100644 (file)
@@ -175,8 +175,8 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
        @echo '*** Building HTML ***'
        test -d html || mkdir html
        cd html && gtkdoc-mkhtml $(DOC_MODULE) $(srcdir)/../$(DOC_MAIN_SGML_FILE)
-       test "x$(HTML_IMAGES)" = "x" || for i in $(HTML_IMAGES) ; do \
-           cp $(srcdir)/$$i html ; done
+       test "x$(HTML_IMAGES)" = "x" || for i in "" $(HTML_IMAGES) ; do \
+           if test "$$i" != ""; then cp $(srcdir)/$$i html ; fi; done
        @echo '-- Fixing Crossreferences' 
        LANG=C && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
        touch html-build.stamp
@@ -285,8 +285,8 @@ dist-hook: dist-check-gtkdoc dist-hook-local
        -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
 
        images=$(HTML_IMAGES) ;               \
-       for i in $$images ; do                \
-         cp $(srcdir)/$$i $(distdir)/html ;  \
+       for i in "" $$images ; do                     \
+         if test "$$i" != ""; then cp $(srcdir)/$$i $(distdir)/html ; fi; \
        done
 
 .PHONY : dist-hook-local
index f3ef7f7..90232a4 100644 (file)
@@ -175,8 +175,8 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
        @echo '*** Building HTML ***'
        test -d html || mkdir html
        cd html && gtkdoc-mkhtml $(DOC_MODULE) $(srcdir)/../$(DOC_MAIN_SGML_FILE)
-       test "x$(HTML_IMAGES)" = "x" || for i in $(HTML_IMAGES) ; do \
-           cp $(srcdir)/$$i html ; done
+       test "x$(HTML_IMAGES)" = "x" || for i in "" $(HTML_IMAGES) ; do \
+           if test "$$i" != ""; then cp $(srcdir)/$$i html ; fi; done
        @echo '-- Fixing Crossreferences' 
        LANG=C && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
        touch html-build.stamp
@@ -284,8 +284,8 @@ dist-hook: dist-check-gtkdoc dist-hook-local
        -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
 
        images=$(HTML_IMAGES) ;               \
-       for i in $$images ; do                \
-         cp $(srcdir)/$$i $(distdir)/html ;  \
+       for i in "" $$images ; do                     \
+         if test "$$i" != ""; then cp $(srcdir)/$$i $(distdir)/html ; fi; \
        done
 
 .PHONY : dist-hook-local
index ac6ffb3..2d6d100 100644 (file)
 #include "config.h"
 #include "gstfilter.h"
 
+
+#ifndef GST_DISABLE_GST_DEBUG
 #define GST_CAT_DEFAULT GST_CAT_PLUGIN_LOADING
+#else
+#define GST_CAT_DEFAULT 0
+#endif
 
 static GModule *main_module = NULL;
 static GList *_gst_plugin_static = NULL;
index 8914159..d170f55 100644 (file)
@@ -21,7 +21,9 @@ noinst_HEADERS = grammar.tab.h
 grammar.tab.c grammar.tab.h: grammar.y ../gstmarshal.h
        $(BISON_PATH) -d -v -p_gst_parse__yy $(srcdir)/grammar.y -o grammar.tab.c
  
-lex._gst_parse_yy.c: parse.l grammar.tab.h
+parse.l : grammar.tab.h
+
+lex._gst_parse_yy.c: parse.l 
        $(FLEX_PATH) -P_gst_parse_yy $^
 
 ## this is so make install without a previous make can work, because