-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#apiserver project | ||
.idea/ | ||
log/ | ||
apiserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
all: gotool | ||
@go build -v . | ||
clean: | ||
rm -f apiserver | ||
find . -name "[._]*.s[a-w][a-z]"|xargs -i rm -f {} | ||
gotool: | ||
gofmt -w . | ||
go tool vet .|grep -v vendor;true | ||
ca: | ||
openssl req -new -nodes -x509 -out conf/server.crt -keyout conf/server.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=127.0.0.1/[email protected]" | ||
|
||
help: | ||
@echo "make - compile the source code" | ||
@echo "make clean - remove binary file and vim swp files" | ||
@echo "make gotool - run go tool 'fmt' and 'vet'" | ||
@echo "make ca - generate ca files" | ||
.PHONY: clean gotool ca help |