]> Pileus Git - ~andy/gtk/blobdiff - docs/tutorial/Makefile.am
Updated Bulgarian translation
[~andy/gtk] / docs / tutorial / Makefile.am
index 0d4eb1e339430946107d1aaaaf1b414941248c86..5448bd2960158e850bcadf80456a312578425011 100644 (file)
@@ -1,6 +1,8 @@
+include $(top_srcdir)/Makefile.decl
+
 .PHONY: html pdf
 
-EXTRA_DIST = \
+EXTRA_DIST += \
        gtk-tut.sgml                    \
        images/arrow.png                \
        images/aspectframe.png          \
@@ -35,15 +37,20 @@ EXTRA_DIST = \
        images/tictactoe.png
 
 if HAVE_DOCBOOK
-html: 
-       (cd $(srcdir); \
-        db2html gtk-tut.sgml; \
-        mv gtk-tut html; \
-        mkdir html/images; \
-        cp images/*.png html/images)
+html:
+       if test -w $(srcdir); then \
+         (cd $(srcdir); \
+          db2html gtk-tut.sgml; \
+          test -d html && rm -r html; \
+          mv gtk-tut html; \
+          mkdir html/images; \
+          cp images/*.png html/images); \
+       fi
 
 pdf:
-       (cd $(srcdir); db2pdf gtk-tut.sgml)
+       if test -w $(srcdir); then \
+         (cd $(srcdir); db2pdf gtk-tut.sgml); \
+       fi
 
 dist-hook: html
        cp -Rp $(srcdir)/html $(distdir)
@@ -65,3 +72,5 @@ dist-hook:
        echo "***"
 endif
 
+
+-include $(top_srcdir)/git.mk