浏览代码

- fixed latest changes: restored @ (don't show .d creation commands), restored
set -e, replaced {} with () (more portable)

Andrei Pelinescu-Onciul 17 年之前
父节点
当前提交
f6a066725c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Makefile.rules

+ 2 - 2
Makefile.rules

@@ -27,9 +27,9 @@
 	$(CC) $(CFLAGS) $(INCLUDES) $(DEFS) -c $< -o $@
 
 %.d: %.c $(ALLDEP)
-	$(MKDEP) $(CFLAGS) $(INCLUDES) $(DEFS) $< \
+	@set -e; $(MKDEP) $(CFLAGS) $(INCLUDES) $(DEFS) $< \
 	    |  sed 's#\(\($(*D)/\)\{0,1\}$(*F)\)\.o[ :]*#$*.o $@ : #g' > $@; \
-	    test -s $@ || { rm -f $@; false; }
+	    test -s $@ || ( rm -f $@; false )
 
 # use RPATH and SER_LIBS if needed (make install and the module depends
 # on some ser libs)