From 1fd8e694c26a05069da7c660f1c4b95395bfea59 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 18 May 2018 23:06:08 -0400 Subject: use a go workspace --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9693ea4..fe3d2ca 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ CPPFLAGS += -O2 -D_FORTIFY_SOURCE=2 all: cow-dedupe-range all: cow-extent-map +all: cow-dedupe .PHONY: all %: src/%.o @@ -18,5 +19,11 @@ all: cow-extent-map cow-dedupe-range: lib/dedupe-range.o cow-extent-map: lib/extent-map.o lib/strextentflags.o +cow-dedupe: go/bin/cow-dedupe + cp $< $@ +go/bin/cow-dedupe: FORCE + GOPATH=$(CURDIR)/go go install $(@F) + .SECONDARY: .DELETE_ON_ERROR: +.PHONY: FORCE -- cgit v1.2.3