jw-pkg/make/topdir.mk
Jan Lindemann 14df6b25bb topdir.mk: Revert to using subdirs.mk
Revert to using subdirs.mk instead of dirs.mk in topdir.mk.

make config produces a clash between the phony target and some
modules having a subdirectory named "config", notably feedfs, jux and
casview (should be renamed to conf one day, all other modules have
"conf") with dirs.mk.
2010-12-04 13:59:26 +00:00

43 lines
875 B
Makefile

all: config
install: topdir.install
clean: topdir.clean
config:
SUBDIRS ?= $(wildcard inst/pre make scripts tools src include lib bin \
util plugins conf config cfg doc test inst/post)
ifneq ($(wildcard $(TOPDIR)/make/defs.mk),)
include $(TOPDIR)/make/defs.mk
endif
include $(MODDIR)/make/defs.mk
include $(MODDIR)/make/subdirs.mk
include $(MODDIR)/make/rpmdist.mk
include $(MODDIR)/make/rules.mk
include $(MODDIR)/make/doc-rules.mk
distclean: topdir.distclean
INSTALLED_TOPDIR_FILES = $(addprefix $(INSTALL_DOCDIR)/, $(DOCS))
local-%:
find . -name $@.mk | \
while read f; do (\
cd `dirname $$f` ;\
rm -f local.mk ;\
ln -s `basename $$f` local.mk ;\
) done
unlocal:
rm -f $(shell find . -name local.mk)
topdir.distclean:
topdir.clean:
rm -f *.done
topdir.install: prefix.done $(INSTALLED_TOPDIR_FILES)
prefix.done:
mkdir -p $(PREFIX)
touch $@