breakhack/Makefile

50 lines
894 B
Makefile
Raw Normal View History

all:
@make -sC _build/debug
.PHONY: all
2018-10-23 11:01:35 +02:00
release:
@make -sC _build/release
2018-10-23 11:01:35 +02:00
.PHONY: release
clean:
@make clean -sC _build/debug
@make clean -sC _build/release
.PHONY: clean
test:
@make test -sC _build/debug
.PHONY: test
2018-01-31 09:15:33 +01:00
run: $(all)
2018-10-21 07:36:47 +02:00
@LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ ./_build/debug/breakhack
2018-01-31 09:15:33 +01:00
.PHONY: run
2018-03-12 14:55:09 +01:00
2018-10-24 22:18:56 +02:00
playtest: $(all)
@LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ ./_build/release/breakhack
.PHONY: playtest
2018-10-24 22:18:56 +02:00
2018-03-12 14:55:09 +01:00
lint:
@make lint -sC _build/debug
2018-03-12 14:55:09 +01:00
.PHONY: lint
package:
@make package -sC _build/release
.PHONY: package
2022-08-24 15:26:02 +02:00
setup:
@mkdir -p _build/release
@mkdir -p _build/debug
@cd _build/debug/ && \
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=YES ../.. && \
cd -
@cd _build/debug/ && \
cmake -DCMAKE_BUILD_TYPE=Release ../.. && \
cd -
@ln -s _build/debug/compile_commands.json
@echo "Setup complete"
.PHONY: setup
teardown:
@rm -rf _build
.PHONY: teardown