$(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)
# 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
$(INSTALL) -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR)
endif
+$(LIBDIR): $(LIBDIR)
+ mkdir -p $@
+
+$(INCLUDEDIR): $(INCLUDEDIR)
+ mkdir -p $@
+
# include dependencies
-include .depend