Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#16 from GoogleCloudPlatform/fe…
Browse files Browse the repository at this point in the history
…ature/makefile-help

Add help to make and make it the default task.
  • Loading branch information
chrislovecnm authored Feb 8, 2019
2 parents 68f99c9 + 700d835 commit 205e812
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 @@ -15,8 +15,16 @@
# Make will use bash instead of sh
SHELL := /usr/bin/env bash

# lint is the first target in the file so it will get picked up when you just
# run 'make' on its own
.PHONY: help
help:
@echo 'Usage:'
@echo ' make create Create or update resources with Terraform.'
@echo ' make teardown Destroy all resources managed by Terraform.'
@echo ' make validate Check that installed resources work as expected.'
@echo ' make lint Check syntax of all scripts.'
@echo

.PHONY: lint
lint: check_shell check_shebangs check_python check_golang check_terraform \
check_docker check_base_files check_headers check_trailing_whitespace

Expand Down

0 comments on commit 205e812

Please sign in to comment.