summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-06-18 23:18:32 -0700
committerYamaArashi <shadow962@live.com>2016-06-18 23:18:32 -0700
commit09467843cf6031bc5eaf2d0cd33ba1bb79e2488c (patch)
tree8d204c48254fe376019c6580f0c2115a735200ad
parente25c45ec90bacbc5de5d8ff48250107671e6eb67 (diff)
fuck sed
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 66981259f..55f68a7b4 100644
--- a/Makefile
+++ b/Makefile
@@ -120,9 +120,9 @@ data/%_sapphire.o: data/%.s $$(dep)
$(PREPROC) $< charmap.txt | $(AS) $(ASFLAGS) --defsym SAPPHIRE=1 -o $@
ld_script_ruby.txt: ld_script.txt
- @sed "s/\(\(src\|asm\|data\)\/.*\)\.o/\1_ruby.o/g" $< > $@
+ @perl -pe 's#((src|asm|data)/[A-Za-z0-9_]+)\.o#$$1_ruby.o#g' < $< > $@
ld_script_sapphire.txt: ld_script.txt
- @sed "s/\(\(src\|asm\|data\)\/.*\)\.o/\1_sapphire.o/g" $< > $@
+ @perl -pe 's#((src|asm|data)/[A-Za-z0-9_]+)\.o#$$1_sapphire.o#g' < $< > $@
pokeruby.elf: ld_script_ruby.txt $(pokeruby_OBJS)
$(LD) $(pokeruby_LDFLAGS) -o $@ $(pokeruby_OBJS) $(LIBGCC)