summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 43bc7d5..c4f0c55 100644
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,12 @@ all: bin/rrdcreate
all: bin/rrdinfo
all: bin/rrdtool
all: bin/rrdupdate
-all: bin/librrd.so
+all: bin/librrd.so bin/librrd.h
.PHONY: all
-bin/%.so: cmd/%/
- go build -o $@ -buildmode=c-shared ./cmd/$*
-bin/%: cmd/%/
+bin/%.so bin/%.h: cmd/%/ FORCE
+ go build -o $(@D)/$*.so -buildmode=c-shared ./cmd/$*
+bin/%: cmd/%/ FORCE
go build -o $@ ./cmd/$*
.PHONY: FORCE