blob: fc36c8ec5918cca0f7cf30399c7af47b0e776313 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
SHELL := /bin/bash
TARGETS := skate-ref-to-release skate-derive-key skate-cluster skate-verify skate-to-doi skate-bref-id skate-from-unstructured skate-wikipedia-doi skate-dot
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 .
|