jw-pkg/make/topdir.mk

40 lines
658 B
Makefile

SUBDIRS ?= make
all:
install:
clean: topdir.clean
distclean: topdir.distclean
config:
ifeq ($(wildcard $(TOPDIR)/make/defs.mk),)
include make/moddir.mk
else
include $(MODDIR)/make/defs.mk
include $(MODDIR)/make/rpmdist.mk
-include $(TOPDIR)/make/rpmdist.mk
include $(MODDIR)/make/subdirs.mk
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:
rm -f $(DISTCLEAN)
topdir.clean:
rm -f $(CLEAN)
endif
ifneq ($(wildcard $(TOPDIR)/make/defs.mk.in),)
include $(MODDIR)/make/autoconf.mk
endif