Add a test for targets disabled by default

This commit is contained in:
Pierre Pronchery 2018-02-19 00:17:33 +01:00
parent 279ca268f8
commit 6601fffecb
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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