From d2bbf5a7a6435774a69ce2e8de02f39ac7cb7ec7 Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Thu, 31 May 2001 18:03:10 +0000 Subject: [PATCH] Add rules to ensure that the libgst.la and libgstelements.la exist when trying to link the scanner with them. Original commit message from CVS: Add rules to ensure that the libgst.la and libgstelements.la exist when trying to link the scanner with them. Fix mkdirs so that they don't fall over if directories already exist. --- docs/gst/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/gst/Makefile.am b/docs/gst/Makefile.am index 2f3f4b77bc..3f4c0cdd41 100644 --- a/docs/gst/Makefile.am +++ b/docs/gst/Makefile.am @@ -84,6 +84,8 @@ gstreamer-decl.txt: scanobj: $(srcdir)/$(DOC_MODULE).types rm gstreamer-scan.o; ln -s gstreamer-scan.lo gstreamer-scan.o + cd ../../gst/;$(MAKE) libgst.la + cd ../../gst/elements/;$(MAKE) libgstelements.la env CC="$(LIBTOOL) $(CC)" CFLAGS="$(LIBGST_CFLAGS) $(GLIB_CFLAGS) $(XML_CFLAGS) -I../../" LDFLAGS="$(GST_LIBS)"\ gtkdoc-scanobj --module=$(DOC_MODULE) gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) @@ -121,9 +123,9 @@ install-data-local: gstreamer.html fi) dist-hook: gstreamer.html - mkdir $(distdir)/html - mkdir $(distdir)/sgml - mkdir $(distdir)/tmpl + if ! test -d $(distdir)/html ; then mkdir $(distdir)/html ; fi + if ! test -d $(distdir)/sgml ; then mkdir $(distdir)/sgml ; fi + if ! test -d $(distdir)/tmpl ; then mkdir $(distdir)/tmpl ; fi -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml