Skip to content

Commit

Permalink
fix makefile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
svenssonaxel committed Jun 8, 2019
1 parent df4a0e0 commit 78c27b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ $(error mingw32 compiler not found. Install cygwin package mingw64-i686-gcc-core
endif

VERSION = $(shell ./makeversion)
VERSION_H = \#define KEYBOAVERSION "$(VERSION)"

ifneq ($(shell [ -e version.h ] && cat version.h),$(VERSION_H))
$(shell rm version.h)
endif

default: release

Expand All @@ -30,6 +35,6 @@ sendkey.exe: sendkey.c libsendkey.h sendkey-json-parser.c json-str.c common.h ve
$(CC) -o sendkey.exe sendkey.c

version.h:
echo '#define KEYBOAVERSION "'$(VERSION)'"' > version.h
echo '$(VERSION_H)' > version.h

.PHONY: default

0 comments on commit 78c27b3

Please sign in to comment.