mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
make some commands not log to the console
This commit is contained in:
6
makefile
6
makefile
@@ -36,15 +36,15 @@ $(TARGET): $(OBJ)
|
|||||||
|
|
||||||
# creates .o and .d files, include a flag for no unused command line arguments, because in this context it's unneeded
|
# creates .o and .d files, include a flag for no unused command line arguments, because in this context it's unneeded
|
||||||
$(DIR_OBJ)/$(ARCH)/%.o: src/%.c
|
$(DIR_OBJ)/$(ARCH)/%.o: src/%.c
|
||||||
mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
$(CC) -o $@ -MD -MP -c $< $(CFLAGS) -std=$(STD) -x $(LANG) -Wno-unused-command-line-argument
|
$(CC) -o $@ -MD -MP -c $< $(CFLAGS) -std=$(STD) -x $(LANG) -Wno-unused-command-line-argument
|
||||||
|
|
||||||
$(DIR):
|
$(DIR):
|
||||||
mkdir -p $@
|
@mkdir -p $@
|
||||||
|
|
||||||
# update compile commands if the makefile has been updated (for linting)
|
# update compile commands if the makefile has been updated (for linting)
|
||||||
compile_commands.json: makefile
|
compile_commands.json: makefile
|
||||||
touch compile_commands.json
|
@touch compile_commands.json
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
bear -- make
|
bear -- make
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user