diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-03-21 01:17:38 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-03-21 01:17:38 +0100 |
commit | 09a7e8c9d013f13a1aa1ef4e9b7f397647b79967 (patch) | |
tree | 122b474e27afbc66cba1182e983ef5c8555ed12f /skate/Makefile | |
parent | a7e0cf191ebf8fb499e0ab9a3b6cae45727f1286 (diff) | |
download | refcat-09a7e8c9d013f13a1aa1ef4e9b7f397647b79967.tar.gz refcat-09a7e8c9d013f13a1aa1ef4e9b7f397647b79967.zip |
initial import of skate
Diffstat (limited to 'skate/Makefile')
-rw-r--r-- | skate/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/skate/Makefile b/skate/Makefile new file mode 100644 index 0000000..747a478 --- /dev/null +++ b/skate/Makefile @@ -0,0 +1,33 @@ +SHELL := /bin/bash +TARGETS := skate-ref-to-release skate-derive-key skate-cluster skate-biblioref skate-cluster-stats skate-verify skate-to-doi skate-bref-id skate-from-unstructured +PKGNAME := skate + +.PHONY: test +test: + go test -cover -v ./... + +.PHONY: generate +generate: + go generate + +.PHONY: all +all: generate $(TARGETS) + +%: cmd/%/main.go + go build -o $@ $< + +.PHONY: clean +clean: + rm -f $(TARGETS) + rm -f $(PKGNAME)_*.deb + rm -f $(PKGNAME)*.rpm + rm -rf packaging/debian/$(PKGNAME)/usr + +.PHONY: deb +deb: all + mkdir -p packaging/debian/$(PKGNAME)/usr/local/bin + cp $(TARGETS) packaging/debian/$(PKGNAME)/usr/local/bin + cd packaging/debian && fakeroot dpkg-deb --build $(PKGNAME) . + mv packaging/debian/$(PKGNAME)_*.deb . + + |