-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
54 lines (43 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
PACKR2 := $(shell command -v packr2 2> /dev/null)
currentDir = $(shell pwd)
releasesOutputDir = ${currentDir}/releases/$(date +'%F')
install:
ifndef PACKR2
@echo "==> installing packr2"
@go get -u github.com/gobuffalo/packr/v2/packr2
endif
@echo "==> installing go dependencies"
@go mod download
.PHONY: install
release:
@echo "==> releasing windows darwin and linux"
@${currentDir}/scripts/release.sh
.PHONY: release
run:
@echo "==> running job scrapper"
@${currentDir}/scripts/run.sh
.PHONY: run
runquery:
@echo "==> running job scrapper with query"
@${currentDir}/scripts/runquery.sh
.PHONY: runquery
buildwindows:
@echo "==> building job scrapper for windows"
@${currentDir}/scripts/buildwin.sh
.PHONY: build
build:
@echo "==> building job scrapper"
@${currentDir}/scripts/build.sh
.PHONY: build
git:
@echo "==> adding git tracked files"
@git add -u
@git commit
@echo "==> pushing to git remote"
@git push origin
.PHONY: git
clean:
@go clean --cache
@go mod tidy
@git clean -f
.PHONY: clean