From 7c9e6e610ffa4c4cb6fe98e150849bd8569f8d08 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 10 Mar 2019 04:51:42 +0100 Subject: build: allow make to skip hidden directory to reduce stats Signed-off-by: Jason A. Donenfeld --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8a93a700..a2f0a898 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ export CGO_ENABLED := 1 export GOOS := windows export GOARCH := amd64 REAL_GOROOT := $(shell go env GOROOT) -export GOROOT := $(PWD)/deps/go +export GOROOT := $(PWD)/.deps/go export PATH := $(GOROOT)/bin:$(PATH) DEPLOYMENT_HOST ?= winvm @@ -13,17 +13,17 @@ DEPLOYMENT_PATH ?= Desktop all: wireguard.exe -deps/.prepared: - mkdir -p deps +.deps/prepared: + mkdir -p .deps rsync -a --delete --exclude=pkg/obj/go-build "$(REAL_GOROOT)/" "$(GOROOT)/" - patch -f -N -r- -d deps/go -p1 < golang-runtime-dll-injection.patch + patch -f -N -r- -d .deps/go -p1 < golang-runtime-dll-injection.patch touch "$@" resources.syso: resources.rc manifest.xml ui/icon/icon.ico $(WINDRES) -i $< -o $@ -O coff rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d)) -wireguard.exe: resources.syso $(call rwildcard,,*.go *.c *.h) deps/.prepared +wireguard.exe: resources.syso $(call rwildcard,,*.go *.c *.h) .deps/prepared go build -ldflags="-H windowsgui -s -w" -v -o $@ deploy: wireguard.exe @@ -31,6 +31,6 @@ deploy: wireguard.exe scp wireguard.exe $(DEPLOYMENT_HOST):$(DEPLOYMENT_PATH) clean: - rm -rf resources.syso wireguard.exe deps + rm -rf resources.syso wireguard.exe .deps .PHONY: deploy clean all -- cgit v1.2.3-59-g8ed1b