Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (20 sloc) 641 Bytes
.PHONY: deploy clean get/tag
get/tag:
$(eval TAG := $(shell ./get_tag.sh))
$(TAG):
mkdir -p tags/$(TAG)
deploy: get/tag $(TAG) $(GOPATH)/bin/gox $(GOPATH)/bin/ghr
gox -output "tags/$(TAG)/{{.Dir}}_{{.OS}}_{{.Arch}}"
ghr $(TAG) tags/$(TAG)
clean:
rm -rf tags/* main
$(GOPATH)/bin/gox:
go get github.com/mitchellh/gox
$(GOPATH)/bin/ghr:
go get github.com/tcnksm/ghr
main:
go build -o main
test: main
./main enc -in ./tests/plain.txt -key ./tests/key > ./tests/plain.txt.encrypted
./main dec -in ./tests/plain.txt.encrypted -key ./tests/key > ./tests/plain.txt.decrypted
diff -q ./tests/plain.txt ./tests/plain.txt.decrypted