1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-25 17:45:39 +00:00

Makefile: only build from vendored sources

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2021-09-14 10:41:10 -04:00
parent 47b137db03
commit 642d3ed36e
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -66,7 +66,7 @@ CLEAN_FILES += .cli.test .cli.test.tags
build: $(BUILD) build: $(BUILD)
$(BUILD): $(SOURCE_FILES) $(BUILD): $(SOURCE_FILES)
go build -o $(BUILD) $(BUILDPATH) go build -mod=vendor -o $(BUILD) $(BUILDPATH)
install.tools: install.tools:
@go get -u github.com/fatih/color ; \ @go get -u github.com/fatih/color ; \
@ -85,7 +85,7 @@ build.arches: ./bin
p=$$(echo $$pair | cut -d , -f 1);\ p=$$(echo $$pair | cut -d , -f 1);\
a=$$(echo $$pair | cut -d , -f 2);\ a=$$(echo $$pair | cut -d , -f 2);\
echo "Building $$p/$$a ...";\ echo "Building $$p/$$a ...";\
GOOS=$$p GOARCH=$$a go build -o ./bin/gomtree.$$p.$$a $(BUILDPATH) ;\ GOOS=$$p GOARCH=$$a go build -mod=vendor -o ./bin/gomtree.$$p.$$a $(BUILDPATH) ;\
done done
clean: clean: