Adds setup/teardown to Makefile

This commit is contained in:
lprobert 2022-08-24 15:26:02 +02:00
parent 39bc060a77
commit 2aba6c4338
No known key found for this signature in database
GPG Key ID: 644D2A477DF85CB4
2 changed files with 18 additions and 1 deletions

View File

@ -30,3 +30,20 @@ lint:
package:
@make package -sC _build/release
.PHONY: package
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

View File

@ -9,7 +9,7 @@
# compile, using preprocessor checks for platform-specific bits instead of
# testing in here.
cmake_minimum_required(VERSION 2.8.4)
cmake_minimum_required(VERSION 3.6)
project(PhysicsFS)
set(PHYSFS_VERSION 3.0.1)