From 69f0fe67b63d90e523a5a1241fb1b46c2e8dbe03 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 3 Mar 2019 04:04:41 +0100 Subject: global: begin modularization --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cff8a7f..69a8100 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,10 @@ MAKEFLAGS += --no-print-directory generate-version-and-build: @export GIT_CEILING_DIRECTORIES="$(realpath $(CURDIR)/..)" && \ tag="$$(git describe --dirty 2>/dev/null)" && \ - ver="$$(printf 'package main\nconst WireGuardGoVersion = "%s"\n' "$$tag")" && \ - [ "$$(cat version.go 2>/dev/null)" != "$$ver" ] && \ - echo "$$ver" > version.go && \ - git update-index --assume-unchanged version.go || true + ver="$$(printf 'package device\nconst WireGuardGoVersion = "%s"\n' "$$tag")" && \ + [ "$$(cat device/version.go 2>/dev/null)" != "$$ver" ] && \ + echo "$$ver" > device/version.go && \ + git update-index --assume-unchanged device/version.go || true @$(MAKE) wireguard-go wireguard-go: $(wildcard *.go) $(wildcard */*.go) -- cgit v1.2.3-54-g00ecf