summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2010-01-02 14:02:18 -0800
committerSteven Noonan <steven@uplinklabs.net>2010-01-02 14:02:18 -0800
commit23703df3d449eb80d14f42a213eca4e267416bb8 (patch)
tree6ebf3cc2ed287d2752a6c3ce72e51e399970e82a /crawl-ref/source/makefile
parent14960780da46efe234e9b84ec712f9c168196271 (diff)
downloadcrawl-ref-23703df3d449eb80d14f42a213eca4e267416bb8.tar.gz
crawl-ref-23703df3d449eb80d14f42a213eca4e267416bb8.zip
makefile: use simpler build rule syntax
Bah, we don't even need patsubst at all. Why didn't I read the GNU Make manual before? Signed-off-by: Steven Noonan <steven@uplinklabs.net>
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 58ae0b05b1..0f9123f037 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,$(patsubst %.o,%.d,$@) -c $< -o $@
+ $(QUIET_CXX)$(CXX) $(YACC_CFLAGS) -Wp,-MD,$*.d -c $< -o $*.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,$(patsubst %.o,%.d,$@) -c $< -o $@
+ $(QUIET_CXX)$(CC) $(ALL_CFLAGS) -Wp,-MD,$*.d -c $< -o $*.o
%.o: %.cc .cflags
- $(QUIET_CXX)$(CXX) $(ALL_CFLAGS) -Wp,-MD,$(patsubst %.o,%.d,$@) -c $< -o $@
+ $(QUIET_CXX)$(CXX) $(ALL_CFLAGS) -Wp,-MD,$*.d -c $< -o $*.o
icon.o: util/crawl.rc util/crawl.ico
$(QUIET_WINDRES)$(WINDRES) util/crawl.rc icon.o