diff --git a/make/topdir.mk b/make/topdir.mk index 35a8abd4..7353cf37 100644 --- a/make/topdir.mk +++ b/make/topdir.mk @@ -1,7 +1,7 @@ SUBDIRS ?= make all: config -install: +install: topdir.install clean: topdir.clean distclean: topdir.distclean config: @@ -20,6 +20,8 @@ ifneq ($(wildcard $(TOPDIR)/make/defs.mk.in),) include $(MODDIR)/make/autoconf.mk endif +INSTALLED_TOPDIR_FILES = $(addprefix $(INSTALL_DOCDIR)/, $(DOCS)) + local-%: find . -name $@.mk | \ while read f; do (\ @@ -32,8 +34,8 @@ unlocal: rm -f $(shell find . -name local.mk) topdir.distclean: - rm -f $(DISTCLEAN) topdir.clean: - rm -f $(CLEAN) + +topdir.install: $(INSTALLED_TOPDIR_FILES)