Some improvements in Makefile.mingw32.depend

- Change $(cce) to output .d file prerequisite too, the same as .o
- Replace $(CLEAN_FILE) handling w/ "clean: cleandep", for more encapsulation
This commit is contained in:
Feiyun Wang
2022-01-27 18:54:22 +08:00
committed by nhmall
parent 8a26e01397
commit 96de8d58d6
2 changed files with 2 additions and 5 deletions

View File

@@ -228,9 +228,7 @@ extern void win32_abort(void);
extern void consoletty_preference_update(const char *);
extern void toggle_mouse_support(void);
extern void map_subkeyvalue(char *);
#if defined(WIN32CON)
extern void set_altkeyhandling(const char *);
#endif
extern void raw_clear_screen(void);
#include <fcntl.h>

View File

@@ -1,6 +1,6 @@
.PHONY: depend cleandep
cce = gcc -E -MM -MT $(@:d=o)
cce = gcc -E -MM -MT "$(@:d=o) $@"
# Copy all $(cc) commands w/ their targets from Makefile.mingw32, 3rd party code unnecessary
# Replace .o w/ .d, $(cc) w/ $(cce)
@@ -115,7 +115,6 @@ depend: $(DEP_TARGETS)
cleandep:
@-rm -f $(DEP_TARGETS) .depend
@echo Done.
CLEAN_FILE += .depend $(DEP_TARGETS)
clean: cleandep
# end of file