Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Add target for running the binary in live edit mode (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido authored Apr 16, 2024
1 parent 54c1b8c commit 18ff1d0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ deb: ## Build DEB the meta package
rpm: ## Build RPM the meta package
rpmbuild -ba --define '_rpmdir ./deploy/rpmbuild/' deploy/rpmbuild/SPECS/camblet.spec

.PHONY: _run
_run: ## Run the binary
sudo build/camblet agent --policies-path /etc/camblet/policies/ --services-path /etc/camblet/services/

.PHONY: _sync-config
_sync-config: ## Sync the configuration files to /etc/camblet
$(shell while true; do sudo rsync -av ./camblet.d/ /etc/camblet/; sleep 2; done)

.PHONY: run
run: ## Run the binary
sudo build/camblet agent --policies-path ./camblet.d/policies/ --services-path ./camblet.d/services/
run: ## Run the binary in live edit mode
@$(MAKE) -j2 _run _sync-config

0 comments on commit 18ff1d0

Please sign in to comment.