test for robodoc in configure if enabled with --enable-autodoc
[libfirm] / MakeTargets
index 6b1cc7b..ec4cf1b 100644 (file)
@@ -31,6 +31,14 @@ else
        $(CC) -M $(DEFS) $(CPPFLAGS) $(filter %.c,$^) >.depend || { $(RM) .depend; false; }
 endif
 
+autodoc_xref: subdir_autodoc_xref local_autodoc_xref
+.PHONY: local_autodoc_xref
+local_autodoc_xref: $(LOCALXREFSFILE)
+
+autodoc_html: subdir_autodoc_html local_autodoc_html
+.PHONY: local_autodoc_html
+local_autodoc_html: $(HTMLFILES)
+
 
 # Recurse into $(subdirs) for $(targets)
 $(addprefix subdir_,$(targets)): $(subdirs)
@@ -48,7 +56,7 @@ local_tags:   $(TAGFILES)
 
 # installation
 install:       subdir_install local_install
-local_install:
+local_install: $(INCLUDEDIR) $(LIBDIR)
 ifneq ($(strip $(INSTALL_HEADERS)),)
        $(INSTALL) -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR)
 endif
@@ -56,5 +64,11 @@ ifneq ($(strip $(INSTALL_LIBS)),)
        $(INSTALL) -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
 endif
 
+$(LIBDIR):     $(LIBDIR)
+       mkdir -p $@
+
+$(INCLUDEDIR): $(INCLUDEDIR)
+       mkdir -p $@
+
 # include dependencies
 -include .depend