2021-06-25 19:09:54 -04:00
|
|
|
|
2021-06-27 17:16:39 -04:00
|
|
|
CGO_ENABLED=0
|
2021-06-25 23:42:58 -04:00
|
|
|
GOPATH=$(HOME)/go/
|
2021-06-27 17:16:39 -04:00
|
|
|
VERSION="0.0.001"
|
2021-06-25 23:42:58 -04:00
|
|
|
|
2021-06-25 19:09:54 -04:00
|
|
|
all: fmt build readme
|
|
|
|
|
|
|
|
build:
|
2021-12-03 17:40:46 -05:00
|
|
|
go build -o ./i2p.plugin.native ./cmd/i2p.plugin.native
|
2021-06-25 19:09:54 -04:00
|
|
|
|
|
|
|
readme:
|
2022-02-03 14:28:30 -05:00
|
|
|
cat desc | tee README.md
|
2021-06-25 20:36:14 -04:00
|
|
|
echo "" | tee -a README.md
|
2021-06-25 20:36:56 -04:00
|
|
|
echo "There are some examples in the Makefile for now." | tee -a README.md
|
|
|
|
echo "" | tee -a README.md
|
2021-06-25 20:36:14 -04:00
|
|
|
echo "Here's a copy of the usage while I work on a better README.md:" | tee -a README.md
|
|
|
|
echo "" | tee -a README.md
|
2021-06-25 22:07:59 -04:00
|
|
|
echo "\`\`\`markdown" | tee -a README.md
|
2021-07-18 13:16:44 -04:00
|
|
|
i2p.plugin.native -h 2>&1 | tee -a README.md
|
2021-06-25 19:09:54 -04:00
|
|
|
echo "\`\`\`" | tee -a README.md
|
|
|
|
|
2021-06-25 21:50:09 -04:00
|
|
|
clean:
|
|
|
|
rm -rf plugin *.zip *.su3
|
2021-06-25 19:09:54 -04:00
|
|
|
|
|
|
|
fmt:
|
2021-06-27 17:16:39 -04:00
|
|
|
find . -name '*.go' -exec gofmt -w -s {} \;
|
|
|
|
|
2021-12-03 17:40:46 -05:00
|
|
|
install: all
|
|
|
|
install -m755 ./i2p.plugin.native ~/go/bin/i2p.plugin.native
|