From 6601fffecb2b290b51e74a21389722e7da53955d Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 19 Feb 2018 00:17:33 +0100 Subject: [PATCH] Add a test for targets disabled by default --- tests/script/Makefile.NetBSD | 6 +++++- tests/script/project.conf | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/script/Makefile.NetBSD b/tests/script/Makefile.NetBSD index 35bca1b..208ac55 100644 --- a/tests/script/Makefile.NetBSD +++ b/tests/script/Makefile.NetBSD @@ -13,12 +13,16 @@ all: $(TARGETS) $(OBJDIR)test: ./script.sh -P "/somewhere/else" -- "$(OBJDIR)test" +$(OBJDIR)disabled: a.c b.c + ./script.sh -P "$(PREFIX)" -- "$(OBJDIR)disabled" + phony: a.c b.c ./script.sh -P "$(PREFIX)" -- "phony" clean: - $(RM) -- $(test_OBJS) $(phony_OBJS) + $(RM) -- $(test_OBJS) $(disabled_OBJS) $(phony_OBJS) ./script.sh -c -P "/somewhere/else" -- "$(OBJDIR)test" + ./script.sh -c -P "$(PREFIX)" -- "$(OBJDIR)disabled" ./script.sh -c -P "$(PREFIX)" -- "$(OBJDIR)phony" distclean: clean diff --git a/tests/script/project.conf b/tests/script/project.conf index 647a8a1..e47ea80 100644 --- a/tests/script/project.conf +++ b/tests/script/project.conf @@ -1,4 +1,4 @@ -targets=test,phony +targets=test,disabled,phony dist=Makefile [test] @@ -7,6 +7,12 @@ script=./script.sh prefix=/somewhere/else install=/somewhere/else/again +[disabled] +type=script +script=./script.sh +depends=a.c,b.c +enabled=0 + [phony] type=script script=./script.sh