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>
This commit is contained in:
parent
48b7df3b78
commit
ac54a7bca6
18 changed files with 22 additions and 16 deletions
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
include $(JWBDIR)/make/defs.mk
|
||||
|
||||
all:
|
||||
all install:
|
||||
clean distclean:
|
||||
$(RM) -rf $(filter-out $(LOCAL_MKFILES) CVS debug release,$(wildcard *))
|
||||
test:
|
||||
test: all
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ all: do.all
|
|||
install: do.install
|
||||
clean: do.clean
|
||||
distclean: do.distclean
|
||||
test:
|
||||
|
||||
include $(JWBDIR)/make/defs.mk
|
||||
include $(JWBDIR)/make/defs-dirs.mk
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ all:
|
|||
clean: clean.conf
|
||||
install: install_CFG install_files_SYSCFG install_files_LOGROT install_files_CRONTAB install_files_RSYSLOG \
|
||||
install_files_APACHE_CONF install_files_SYSTEMD install_files_INIT install_files_TMPFILES $(CONF_D)
|
||||
test:
|
||||
test: all
|
||||
|
||||
clean.conf:
|
||||
$(RM) -rf *~ .*.swp *.done
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@ install:
|
|||
clean:
|
||||
distclean:
|
||||
check:
|
||||
test:
|
||||
test: all
|
||||
get-%:
|
||||
pkg-%:
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ include $(JWBDIR)/make/dev-utils.mk
|
|||
|
||||
all: $(EXE) $(BUILD_EXE_BIN) $(STRIP_DONE)
|
||||
install: $(INSTALLED_EXE) $(INSTALLED_EXE_BIN)
|
||||
run test: all.dirs $(EXE) $(EXE_BIN)
|
||||
run test: all all.dirs $(EXE) $(EXE_BIN)
|
||||
strace: $(EXE) $(EXE_BIN)
|
||||
|
||||
clean: execlean localclean profclean
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ clean: clean-mo
|
|||
$(RM) -rf *~ .*.swp
|
||||
install: install_MO
|
||||
distclean: clean
|
||||
test:
|
||||
test: all
|
||||
|
||||
extract: $(GETTEXT_POT)
|
||||
clean-mo:
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ include $(JWBDIR)/make/dev-utils.mk
|
|||
all: $(LESS_GENERATED_CSS) lint
|
||||
install: install_HTML
|
||||
clean: textclean localclean doneclean clean.lesscpy
|
||||
test:
|
||||
test: all
|
||||
|
||||
%.css: %.less
|
||||
$(LESS_CPY) $< > $@.tmp
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ all: build_PKG_CONFIG
|
|||
endif
|
||||
install: $(DEVEL_TARGETS)
|
||||
clean: textclean localclean doneclean clean.pkg-config
|
||||
test:
|
||||
test: all
|
||||
|
||||
$(INSTALL_PCKG_DEPS_DIR)/$(PROJECT).mk: pckg-deps.mk
|
||||
mkdir -p $(dir $@)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ include $(JWBDIR)/make/rules.mk
|
|||
all: $(PROFILE)
|
||||
install: install_files_PROFILE
|
||||
clean: allclean localclean doneclean textclean clean.profile
|
||||
test:
|
||||
test: all
|
||||
|
||||
path-%.sh:
|
||||
@echo "export PATH=\$$PATH:$(INSTALL_EXEDIR)" > $@.tmp
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ all:
|
|||
install:
|
||||
clean:
|
||||
distclean:
|
||||
test:
|
||||
test: all
|
||||
|
||||
run:
|
||||
$(PYTHON) $(EXE) $(EXE_ARGS)
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ all:
|
|||
install:
|
||||
clean: runclean localclean
|
||||
distclean:
|
||||
test: all
|
||||
|
||||
run-deps: all
|
||||
$(RM) -f core core.* vgcore vgcore.*
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
all: build_EXE build_CGI
|
||||
install: install_files_INIT install_EXE install_files_CGI install_files_SYSCFG
|
||||
clean:allclean localclean doneclean textclean clean.init
|
||||
test:
|
||||
test: all
|
||||
|
||||
ifeq ($(INSTALL_HOME_BIN_WRAPPERS),true)
|
||||
install: install-home-bin
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ clean: clean.std-targets
|
|||
clean.std-targets:
|
||||
$(RM) -rf *~ .*.swp *.done
|
||||
distclean: clean
|
||||
test:
|
||||
test: all
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ include $(JWBDIR)/make/defs-dirs.mk
|
|||
all:
|
||||
clean: clean.var
|
||||
distclean: clean.var distclean.var
|
||||
test:
|
||||
|
||||
all install clean distclean test:
|
||||
ifneq ($(SUBDIRS_TO_ITERATE),)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ clean: execlean localclean profclean testclean
|
|||
distclean:
|
||||
run test: all.dirs $(EXE) $(EXE_BIN)
|
||||
strace: $(EXE) $(EXE_BIN)
|
||||
test: test.done
|
||||
test: all test.done
|
||||
|
||||
test.done:
|
||||
if ! 2>&1 make run > test.out 2>&1; then \
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ all:
|
|||
install:
|
||||
distclean: textclean localclean
|
||||
clean: textclean localclean
|
||||
test:
|
||||
test: all
|
||||
|
|
|
|||
|
|
@ -19,4 +19,4 @@ include $(JWBDIR)/make/rules.mk
|
|||
all:
|
||||
install: install_TMPL
|
||||
clean: textclean localclean doneclean
|
||||
test:
|
||||
test: all
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
FORCE \
|
||||
all \
|
||||
format \
|
||||
canonicalize-remotes \
|
||||
check-syntax \
|
||||
check-format \
|
||||
check \
|
||||
|
|
@ -42,7 +43,7 @@
|
|||
pkg-install-release-deps \
|
||||
pkg-install-testbuild-deps \
|
||||
recache-vars \
|
||||
canonicalize-remotes
|
||||
test
|
||||
|
||||
ifeq ($(ORDERED_SUBDIRS),)
|
||||
SUBDIRS ?= $(dir $(wildcard $(addsuffix /Makefile,\
|
||||
|
|
@ -95,6 +96,7 @@ ifneq ($(SUBDIRS_TO_ITERATE),)
|
|||
endif
|
||||
|
||||
all: topdir config
|
||||
test: all
|
||||
|
||||
include $(JWBDIR)/make/dirs.mk
|
||||
include $(JWBDIR)/make/pkg-dist.mk
|
||||
|
|
@ -115,7 +117,7 @@ TD_COPY_FILES ?= $(filter-out Makefile,$(notdir $(wildcard $(TD_CO
|
|||
TD_COPY_SRC_PATH = $(subst :,$(space),$(JW_PKG_TOPDIR_COPY_PATH))
|
||||
TD_GENERATE_FILES += $(TD_COPY_FILES)
|
||||
|
||||
all:
|
||||
test: all
|
||||
format: topdir
|
||||
check-syntax: topdir
|
||||
check-format: topdir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue