Add a test for targets disabled by default
This commit is contained in:
parent
279ca268f8
commit
6601fffecb
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user