Fixed Makefile GL/version.h (echo -e to printf)

The `echo -e` command is non-standard, and ends up printing a -e at the top of the version.h file. Switching it to `printf` works correctly and is the "correct" command to work in all shells.

I also removed the GL/version.h file from the git cache, as it's in .gitignore but seems to have been accidentally checked in.
This commit is contained in:
Ben Baron 2020-04-05 13:39:43 -05:00
parent ca7eb462fc
commit 0beaba5aeb
2 changed files with 1 additions and 4 deletions

View File

@ -1,3 +0,0 @@
#pragma once
#define GLDC_VERSION "1.1-104-gf2a3-dirty"

View File

@ -15,7 +15,7 @@ KOS_CFLAGS += -ffast-math -Ofast -Iinclude
GL/version.h:
rm -f $@
@echo -e '#pragma once\n#define GLDC_VERSION "$(shell git describe --abbrev=4 --dirty --always --tags)"\n' > $@
@printf '#pragma once\n#define GLDC_VERSION "$(shell git describe --abbrev=4 --dirty --always --tags)"\n' > $@
link:
$(KOS_AR) rcs $(TARGET) $(OBJS)