Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ba3fe6632 |
@@ -5,6 +5,8 @@
|
|||||||
# debug — Debug build (build-debug/)
|
# debug — Debug build (build-debug/)
|
||||||
# release - Release build (build-release/)
|
# release - Release build (build-release/)
|
||||||
# dist - tar.zst tarball of the release build (requires zstd)
|
# dist - tar.zst tarball of the release build (requires zstd)
|
||||||
|
# test — build then run all three test suites
|
||||||
|
# clean - remove all build directories
|
||||||
# dist-clean - remove everything under dist/
|
# dist-clean - remove everything under dist/
|
||||||
#
|
#
|
||||||
# Overridable: make release CXX=g++ GENERATOR="Unix Makefiles"
|
# Overridable: make release CXX=g++ GENERATOR="Unix Makefiles"
|
||||||
@@ -25,7 +27,7 @@ DIST_NAME := kappa-$(GIT_COMMIT)-$(GIT_TAG)-$(STAMP)
|
|||||||
|
|
||||||
CMAKE := cmake
|
CMAKE := cmake
|
||||||
|
|
||||||
.PHONY: build debug release dist dist-clean
|
.PHONY: build debug release dist test clean dist-clean
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(CMAKE) -S . -B $(BUILD_DIR) -G $(GENERATOR) \
|
$(CMAKE) -S . -B $(BUILD_DIR) -G $(GENERATOR) \
|
||||||
@@ -53,3 +55,18 @@ dist: release
|
|||||||
|
|
||||||
dist-clean:
|
dist-clean:
|
||||||
rm -rf $(DIST_DIR)
|
rm -rf $(DIST_DIR)
|
||||||
|
|
||||||
|
test: build
|
||||||
|
@echo "==> test.sh"
|
||||||
|
@./test.sh
|
||||||
|
@echo ""
|
||||||
|
@echo "==> test-init-switch.sh"
|
||||||
|
@./test-init-switch.sh
|
||||||
|
@echo ""
|
||||||
|
@echo "==> test-full.sh"
|
||||||
|
@./test-full.sh
|
||||||
|
@echo ""
|
||||||
|
@echo "all test suites passed"
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(BUILD_DIR) $(DEBUG_DIR) $(RELEASE_DIR)
|
||||||
|
|||||||
Reference in New Issue
Block a user