mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
18 lines
365 B
Makefile
18 lines
365 B
Makefile
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 $@
|