mirror of
https://github.com/thepigeongenerator/mcaselector-lite
synced 2026-02-08 07:33:35 +01:00
Add check recipe, which checks the code using sparse.
This commit is contained in:
9
Makefile
9
Makefile
@@ -11,6 +11,7 @@ VERSION = 0.0
|
|||||||
CMAKE ?= cmake -G 'Unix Makefiles'
|
CMAKE ?= cmake -G 'Unix Makefiles'
|
||||||
XXD ?= xxd
|
XXD ?= xxd
|
||||||
TAR ?= tar
|
TAR ?= tar
|
||||||
|
SPARSE ?= sparse
|
||||||
|
|
||||||
RES := $(wildcard res/*.glsl)
|
RES := $(wildcard res/*.glsl)
|
||||||
SRC := $(shell find src/ -name '*.c' -print) $(addsuffix .c,$(RES)) lib/glad/src/gl.c
|
SRC := $(shell find src/ -name '*.c' -print) $(addsuffix .c,$(RES)) lib/glad/src/gl.c
|
||||||
@@ -63,6 +64,14 @@ all: bin/mcaselector-lite bin/mcaselector-lite.stripped
|
|||||||
# TODO: Same goes for install-strip, which does the same, but with the stripped binary instead.
|
# TODO: Same goes for install-strip, which does the same, but with the stripped binary instead.
|
||||||
# TODO: Include distclean which recompiles the libraries.
|
# TODO: Include distclean which recompiles the libraries.
|
||||||
|
|
||||||
|
# Executes checks upon the code.
|
||||||
|
# The standard requires code to already be built at this stage.
|
||||||
|
# This isn't necessary for this, but may be added in the future,
|
||||||
|
# if so add the binary in the prerequisites.
|
||||||
|
.PHONY:
|
||||||
|
check: $(SRC)
|
||||||
|
$(Q)$(SPARSE) $(CPPFLAGS) $<
|
||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
clean:
|
clean:
|
||||||
-$(Q)$(RM) $(OBJ) $(DEP)
|
-$(Q)$(RM) $(OBJ) $(DEP)
|
||||||
|
|||||||
Reference in New Issue
Block a user