2018-01-30 17:39:47 +01:00
|
|
|
all:
|
2019-05-09 10:16:38 +02:00
|
|
|
@make -sC _build/debug
|
2018-01-30 17:39:47 +01:00
|
|
|
.PHONY: all
|
|
|
|
|
2018-10-23 11:01:35 +02:00
|
|
|
release:
|
2019-05-09 10:16:38 +02:00
|
|
|
@make -sC _build/release
|
2018-10-23 11:01:35 +02:00
|
|
|
.PHONY: release
|
|
|
|
|
2018-01-30 17:39:47 +01:00
|
|
|
clean:
|
2019-05-09 10:16:38 +02:00
|
|
|
@make clean -sC _build/debug
|
|
|
|
@make clean -sC _build/release
|
2018-01-30 17:39:47 +01:00
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
test:
|
2019-05-09 10:16:38 +02:00
|
|
|
@make test -sC _build/debug
|
2018-01-30 17:39:47 +01:00
|
|
|
.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
|
2019-05-15 20:32:48 +02:00
|
|
|
.PHONY: playtest
|
2018-10-24 22:18:56 +02:00
|
|
|
|
2018-03-12 14:55:09 +01:00
|
|
|
lint:
|
2019-05-09 10:16:38 +02:00
|
|
|
@make lint -sC _build/debug
|
2018-03-12 14:55:09 +01:00
|
|
|
.PHONY: lint
|
2018-09-08 23:01:12 +02:00
|
|
|
|
|
|
|
package:
|
2019-05-09 10:16:38 +02:00
|
|
|
@make package -sC _build/release
|
2018-09-08 23:01:12 +02:00
|
|
|
.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
|