Skip to content

Commit

Permalink
dev: add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtoj committed Aug 2, 2023
1 parent 78edec5 commit 90fe63a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
PROJ_ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

# allows args to pass to run-cmd example: make run-cmd echo "hello world"
ifeq (run-cmd,$(firstword $(MAKECMDGOALS)))
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
$(eval $(RUN_ARGS):;@:)
endif

all: deps build
@exit 0

deps:
@exit 0

build:
@exit 0

clean:
@find . -type d -name "dist" -exec rm -rf {} +
@find . -type d -name ".terraform" -exec rm -rf {} +
@find . -type d -name ".terraform.d" -exec rm -rf {} +
@find . -type d -name ".tfstate" -exec rm -rf {} +
@find . -type d -name ".tfstate.backup" -exec rm -rf {} +
@touch .devcontainer/.terraform.d/.gitkeep || true

0 comments on commit 90fe63a

Please sign in to comment.