jw-pkg/make/cleandirs.mk
Jan Lindemann ac54a7bca6
make: Make target "test" depend on target "all"

Every directory should have a test target, and the test target should depend on all so that all files are generated that might be needed for testing. This commit fixes some missing targets, and adds some missing dependencies.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-07-02 19:52:35 +02:00

30 lines
691 B
Makefile

.NOTPARALLEL:
all: do.all
install: do.install
clean: do.clean
distclean: do.distclean
test:
include $(JWBDIR)/make/defs.mk
include $(JWBDIR)/make/defs-dirs.mk
SUBDIRS ?= $(FIND_SUBDIRS)
ifeq ($(FORCE_REBUILD_CLEANDIRS),true)
SUBDIRS_ALL = $(SUBDIRS)
SUBDIRS_INSTALL = $(SUBDIRS)
else
SUBDIRS_ALL ?=
SUBDIRS_INSTALL ?=
endif
do.all:
set -e; for d in $(SUBDIRS_ALL); do make -wC $$d $*; done
do.install:
set -e; for d in $(SUBDIRS_INSTALL); do make -wC $$d $*; done
do.%:
set -e; for d in $(SUBDIRS); do make -wC $$d $*; done
$(RM) -rf $(TEXTCLEAN) $(CLEAN) *.done *~ .*.swp *.tmp core *.rep dirs-*.done