From 3386e4544065c8408c74c62ec5a74653ca40726d Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 29 Oct 2003 20:07:35 +0000 Subject: [PATCH] Tweak sed commands so that they filter out more # stuff and also work on Mac OS X. Also turn ${...} into $(...); we do not speak BSD Make. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9589 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/SparcV9/Makefile b/lib/Target/SparcV9/Makefile index 59db2d3fc0a..b169c579c62 100644 --- a/lib/Target/SparcV9/Makefile +++ b/lib/Target/SparcV9/Makefile @@ -20,10 +20,10 @@ else endif Sparc.burg.in1 : Sparc.burg.in - $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Ydefine/#define/' > $@ + $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@ Sparc.burm : Sparc.burg.in1 - $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Xinclude/#include/g' | ${SED} 's/Xdefine/#define/g' > $@ + $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@ Sparc.burm.cpp: Sparc.burm @echo "Burging $<" @@ -52,5 +52,5 @@ $(TARGET_NAME)CodeEmitter.inc:: $(TARGET_NAME).td $(TABLEGEN_FILES) $(TBLGEN) $(TBLGEN) -I $(SourceDir) $< -gen-emitter -o $@ clean:: - ${RM} -f $(TARGET_NAME)CodeEmitter.inc Sparc.burg.in1 Sparc.burm Sparc.burm.cpp + $(RM) -f $(TARGET_NAME)CodeEmitter.inc Sparc.burg.in1 Sparc.burm Sparc.burm.cpp