mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
cross platform improvements to the makefile
This commit is contained in:
parent
d2b96401a4
commit
1cbb2df5ce
4
Makefile
4
Makefile
@ -1,6 +1,8 @@
|
||||
OS=$(shell uname)
|
||||
BUILD_THREADS=5
|
||||
ifeq ($(OS),Darwin)
|
||||
OSQUERYD_PLIST_PATH="/Library/LaunchDaemons/com.facebook.osqueryd.plist"
|
||||
endif
|
||||
ROCKSDB_PATH="/tmp/rocksdb-osquery"
|
||||
|
||||
all: tables build
|
||||
@ -17,6 +19,7 @@ build:
|
||||
clean: clean_tables
|
||||
cd build && make clean
|
||||
|
||||
ifeq ($(OS),Darwin)
|
||||
clean_install:
|
||||
rm -rf /var/osquery
|
||||
rm -rf $(ROCKSDB_PATH)
|
||||
@ -25,6 +28,7 @@ clean_install:
|
||||
rm -f /var/log/osquery.log
|
||||
if [ -f $(OSQUERYD_PLIST_PATH) ]; then launchctl unload $(OSQUERYD_PLIST_PATH); fi;
|
||||
rm -f $(OSQUERYD_PLIST_PATH)
|
||||
endif
|
||||
|
||||
clean_tables:
|
||||
rm -rf osquery/tables/generated
|
||||
|
Loading…
Reference in New Issue
Block a user