mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
Add Makefile and README
This commit is contained in:
17
Makefile
Normal file
17
Makefile
Normal 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 $@
|
Reference in New Issue
Block a user