mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
24 lines
467 B
Makefile
24 lines
467 B
Makefile
PLATFORM := $(shell uname -s)
|
|
ifeq ($(PLATFORM),Darwin)
|
|
BUILD_DIR=build/darwin
|
|
else
|
|
BUILD_DIR=build/linux
|
|
endif
|
|
|
|
all:
|
|
mkdir -p $(BUILD_DIR)
|
|
cd $(BUILD_DIR) && cmake ../.. && make --no-print-directory $(MAKEFLAGS)
|
|
|
|
deps:
|
|
./tools/provision.sh
|
|
|
|
distclean:
|
|
rm -rf .sources $(BUILD_DIR) doxygen/html doxygen/latex
|
|
ifeq ($(PLATFORM),Darwin)
|
|
rm -rf deploy/darwin/build
|
|
endif
|
|
|
|
%::
|
|
mkdir -p $(BUILD_DIR)
|
|
cd $(BUILD_DIR) && cmake ../.. && make --no-print-directory $@
|