summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index e12f6f5a59..11b627e867 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -865,7 +865,7 @@ wizard: $(GAME)
# test.
$(UTIL)%.o: $(UTIL)%.cc .cflags
- $(QUIET_CXX)$(CXX) $(YACC_CFLAGS) -Wp,-MD,$(subst .o,.d,$@) -c $< -o $@
+ $(QUIET_CXX)$(CXX) $(YACC_CFLAGS) -Wp,-MD,$(patsubst %.o,%.d,$@) -c $< -o $@
ifdef PCH
%.h.gch: %.h
@@ -877,10 +877,10 @@ endif
$(OBJECTS:%.o=%.cc): $(CC_DEP) $(TILEDEFHDRS) $(CONTRIB_LIBS)
%.o: %.m .cflags
- $(QUIET_CXX)$(CC) $(ALL_CFLAGS) -Wp,-MD,$(subst .o,.d,$@) -c $< -o $@
+ $(QUIET_CXX)$(CC) $(ALL_CFLAGS) -Wp,-MD,$(patsubst %.o,%.d,$@) -c $< -o $@
%.o: %.cc .cflags
- $(QUIET_CXX)$(CXX) $(ALL_CFLAGS) -Wp,-MD,$(subst .o,.d,$@) -c $< -o $@
+ $(QUIET_CXX)$(CXX) $(ALL_CFLAGS) -Wp,-MD,$(patsubst %.o,%.d,$@) -c $< -o $@
icon.o: util/crawl.rc util/crawl.ico
$(QUIET_WINDRES)$(WINDRES) util/crawl.rc icon.o