7 Makefile
Hunter Long edited this page 2020-05-01 16:02:46 -07:00

Here's a simple list of Makefile commands you can run using make. The Makefile may change often, so i'll try to keep this Wiki up-to-date.

View Makefile

Useful Commands

  • make clean - Cleans the Statping directory for a fresh start
  • make test-deps - Installs required golang libraries for compiling and building

Building

  • make build - Build the golang Statping binary for native OS
  • make compile - Compiles the production frontend Vue
  • make build-all - Cleans, compiles, and builds all binaries
  • make build-linux - Builds Linux binaries
  • make build-mac - Builds MacOSX binaries
  • make build-win - Builds Windows binaries

Testing

  • make test - Cleans, compiles and runs golang unit testing
  • make test-api - Test postman API endpoints
  • make test-cli - Test that run on Github Actions using sqlite

Docker

  • make docker-latest - Builds the base and latest Statping images
  • make start - Run the entire Statping stack with multiple databases and Grafana
  • make stop - Stop the entire Statping stack
  • make lite - Run a lite Statping stack that includes Postgres

Required System Libraries

  • Ubuntu apt-get install build-essential
  • MacOSX sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
  • Windows Install Guide for GNU make utility
  • CentOS/RedHat yum groupinstall "Development Tools"