jw-pkg/make/dirs.mk
Jan Lindemann 711c42ea0a dirs.mk: Add default for SUBDIRS: $(FIND_SUBDIRS)
- Conditionally default SUBDIRS to $(FIND_SUBDIRS)
  - Change condition for dummy targets from ifndef SUBDIRS to
    ifeq ($(SUBDIRS),) to be able to do that
2009-06-02 12:46:17 +00:00

35 lines
503 B
Makefile

# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
.NOTPARALLEL:
include $(MODDIR)/make/defs.mk
SUBDIRS ?= $(FIND_SUBDIRS)
ifeq ($(SUBDIRS),)
all:
subdirs:
clean distclean:
.DEFAULT:
install:
else
all subdirs:
$(make_subdirs)
install:
$(make_subdirs_target)
clean:
$(make_subdirs_target)
rm -rf $(TEXTCLEAN) $(CLEAN) dist *.done *~ .*.swp *.tmp core *.rep
distclean: rmdistclean clean
rmdistclean:
rm -rf $(DISTCLEAN)
.DEFAULT:
$(make_subdirs_target)
endif