osquery-1/Makefile
2014-10-23 14:39:15 -07:00

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 $@