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 .PHONY: exe
exe: exe:
make -C exe exe $(MAKE) -C exe exe
.PHONY: test .PHONY: test
test: test:
make -C tests test $(MAKE) -C tests test
.PHONY: prove
prove:
$(MAKE) -C tests prove
.PHONY: clean .PHONY: clean
clean: clean:
rm -rf build depends $(RM) -r build depends
rm -f quox $(RM) quox
make -C exe clean $(MAKE) -C exe clean
make -C tests clean $(MAKE) -C tests clean

View file

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

View file

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