Skip to content

Commit

Permalink
feat: add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jul 5, 2020
1 parent b581921 commit b9bd46d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
PREFIX ?= pathwar/
PATHWAR_OPTS ?=

.PHONY: pathwar.run
pathwar.run:
pathwar $(PATHWAR_OPTS) compose prepare --no-push ./ > pathwar-compose.yml
pathwar $(PATHWAR_OPTS) compose up --force-recreate pathwar-compose.yml

.PHONY: pathwar.down
pathwar.down:
pathwar --debug compose down $(notdir $(PWD))

.PHONY: pathwar.ps
pathwar.ps:
pathwar compose ps | grep $(notdir $(PWD))

.PHONY: docker.build
docker.build:
docker-compose build --pull

.PHONY: pathwar-prepare
pathwar.prepare:
pathwar $(PATHWAR_OPTS) compose prepare --prefix=$(PREFIX) --no-push .

.PHONY: pathwar-push
pathwar.push:
pathwar $(PATHWAR_OPTS) compose prepare --prefix=$(PREFIX) .

.PHONY: make.bump
make.bump:
wget -O Makefile https://raw.githubusercontent.com/pathwar/pathwar/master/challenges/challenge.mk

0 comments on commit b9bd46d

Please sign in to comment.