breakhack/Makefile

51 lines
921 B
Makefile
Raw Permalink 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:
2022-08-24 16:00:13 +02:00
@make -sC _build/debug clean
@make -sC _build/release clean
.PHONY: clean
test:
2022-08-24 16:00:13 +02:00
@make -sC _build/debug test
.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:
2022-08-24 16:00:13 +02:00
@make -sC _build/debug lint
2018-03-12 14:55:09 +01:00
.PHONY: lint
package:
2022-08-24 16:00:13 +02:00
@make -sC _build/release package
.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
2022-08-24 16:00:13 +02:00
@rm compile_commands.json
2022-08-24 15:26:02 +02:00
.PHONY: teardown