Added makefile
This commit is contained in:
parent
5eea2a49e2
commit
b1986af93a
4
jobs/build.sh
Executable file
4
jobs/build.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
MYDIR="$(dirname "$(realpath "$0")")"
|
||||
cd "$MYDIR"
|
||||
for dir in ./*; do ([ -d "$dir" ] && cd "$dir" && echo "Building $dir" && go build); done
|
23
makefile
Normal file
23
makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# Makefile for Anime Notifier
|
||||
|
||||
GOCMD=@go
|
||||
GOBUILD=$(GOCMD) build
|
||||
GOINSTALL=$(GOCMD) install
|
||||
GOTEST=$(GOCMD) test
|
||||
BUILDJOBS=@./jobs/build.sh
|
||||
|
||||
server:
|
||||
$(GOBUILD)
|
||||
jobs:
|
||||
$(BUILDJOBS)
|
||||
install:
|
||||
$(GOINSTALL)
|
||||
test:
|
||||
$(GOTEST)
|
||||
bench:
|
||||
$(GOTEST) -bench .
|
||||
depslist:
|
||||
$(GOCMD) list -f {{.Deps}} | sed -e 's/\[//g' -e 's/\]//g' | tr " " "\n"
|
||||
all: server jobs
|
||||
|
||||
.PHONY: jobs
|
Loading…
Reference in New Issue
Block a user