use vars in makefiles i guess

This commit is contained in:
rhiannon morris 2022-05-02 02:41:00 +02:00
parent 434f0e08d1
commit df3505a04c
3 changed files with 14 additions and 10 deletions

View file

@ -9,15 +9,19 @@ lib:
.PHONY: exe
exe:
make -C exe exe
$(MAKE) -C exe exe
.PHONY: test
test:
make -C tests test
$(MAKE) -C tests test
.PHONY: prove
prove:
$(MAKE) -C tests prove
.PHONY: clean
clean:
rm -rf build depends
rm -f quox
make -C exe clean
make -C tests clean
$(RM) -r build depends
$(RM) quox
$(MAKE) -C exe clean
$(MAKE) -C tests clean

View file

@ -2,7 +2,7 @@ all: test
.PHONY: lib
lib:
make -C .. lib
$(MAKE) -C .. lib
depends/quox: lib
mkdir -p depends
@ -14,4 +14,4 @@ exe: depends/quox
.PHONY: clean
clean:
rm -rf build depends
$(RM) -r build depends

View file

@ -2,7 +2,7 @@ all: test
.PHONY: lib
lib:
make -C .. lib
$(MAKE) -C .. lib
depends/quox: lib
mkdir -p depends
@ -23,4 +23,4 @@ prove: build-tests
.PHONY: clean
clean:
rm -rf build depends
$(RM) -r build depends