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:
parent
ca7eb462fc
commit
0beaba5aeb
|
@ -1,3 +0,0 @@
|
|||
#pragma once
|
||||
#define GLDC_VERSION "1.1-104-gf2a3-dirty"
|
||||
|
2
Makefile
2
Makefile
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user