Add Makefile and README

This commit is contained in:
Filippo Valsorda
2018-06-25 23:47:55 -04:00
parent 314622cbb3
commit c59b5d9d13
2 changed files with 75 additions and 0 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
IMPORT_PATH := github.com/FiloSottile/mkcert
.PHONY: mkcert
covfefe: .GOPATH/.ok
GOPATH="$(PWD)/.GOPATH" go install -v $(IMPORT_PATH)
.PHONY: clean
clean:
rm -rf bin .GOPATH
.GOPATH/.ok:
mkdir -p ".GOPATH/src/$(IMPORT_PATH)"
rmdir ".GOPATH/src/$(IMPORT_PATH)"
ln -s ../../../.. ".GOPATH/src/$(IMPORT_PATH)"
mkdir -p bin
ln -s ../bin .GOPATH/bin
touch $@