]> granicus.if.org Git - nethack/commitdiff
Some improvements in Makefile.mingw32.depend
authorFeiyun Wang <feiyunw@yahoo.com>
Thu, 27 Jan 2022 10:54:22 +0000 (18:54 +0800)
committernhmall <nhmall@nethack.org>
Thu, 27 Jan 2022 23:34:50 +0000 (18:34 -0500)
- Change $(cce) to output .d file prerequisite too, the same as .o
- Replace $(CLEAN_FILE) handling w/ "clean: cleandep", for more encapsulation

include/windconf.h
sys/windows/Makefile.mingw32.depend

index 21619199f24d78c4481d448f80bb9cab69af2dcf..4625808458045cb93a5404f2cf97e82b0b99eaaa 100644 (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>
index 0d426d11b140fc280817a2d6b624965a31e8dcd4..c9f7cd70e618f09ffdada6efc78ab0ee1526cbc2 100644 (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