summaryrefslogtreecommitdiff
path: root/Makefile
blob: c4f0c55951194a590ab83e3ec7c90f055f02a89b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
all: bin/rrdcached
all: bin/rrdcgi
all: bin/rrdcreate
all: bin/rrdinfo
all: bin/rrdtool
all: bin/rrdupdate
all: bin/librrd.so bin/librrd.h
.PHONY: all

bin/%.so bin/%.h: cmd/%/ FORCE
	go build -o $(@D)/$*.so -buildmode=c-shared ./cmd/$*
bin/%: cmd/%/ FORCE
	go build -o $@ ./cmd/$*

.PHONY: FORCE
.DELETE_ON_ERROR:
.SECONDARY: