Skip to content

Commit b9bd46d

Browse files
committed
feat: add Makefile
1 parent b581921 commit b9bd46d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
PREFIX ?= pathwar/
2+
PATHWAR_OPTS ?=
3+
4+
.PHONY: pathwar.run
5+
pathwar.run:
6+
pathwar $(PATHWAR_OPTS) compose prepare --no-push ./ > pathwar-compose.yml
7+
pathwar $(PATHWAR_OPTS) compose up --force-recreate pathwar-compose.yml
8+
9+
.PHONY: pathwar.down
10+
pathwar.down:
11+
pathwar --debug compose down $(notdir $(PWD))
12+
13+
.PHONY: pathwar.ps
14+
pathwar.ps:
15+
pathwar compose ps | grep $(notdir $(PWD))
16+
17+
.PHONY: docker.build
18+
docker.build:
19+
docker-compose build --pull
20+
21+
.PHONY: pathwar-prepare
22+
pathwar.prepare:
23+
pathwar $(PATHWAR_OPTS) compose prepare --prefix=$(PREFIX) --no-push .
24+
25+
.PHONY: pathwar-push
26+
pathwar.push:
27+
pathwar $(PATHWAR_OPTS) compose prepare --prefix=$(PREFIX) .
28+
29+
.PHONY: make.bump
30+
make.bump:
31+
wget -O Makefile https://raw.githubusercontent.com/pathwar/pathwar/master/challenges/challenge.mk

0 commit comments

Comments
 (0)