From 25b238ea146f4971ffc92749aae8581d1b8ed5e2 Mon Sep 17 00:00:00 2001 From: Konrad Hinsen Date: Fri, 30 Mar 2018 15:58:21 +0200 Subject: [PATCH] Make sed usage compatible with BSD-style seds --- src/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 0752a3a..ef32226 100644 --- a/src/Makefile +++ b/src/Makefile @@ -25,8 +25,7 @@ all: $(HOST_TARGETS) @touch $@ $(HOST_TARGETS): $(TARGET_DIR)/%: $(SRC_DIR)/% $(TARGET_DIR)/.d - cp $(SRC_DIR)/$* $@ - sed -i "s/_VERSIONHOLDER_/$(VERSION)/g" $@ + sed -e "s/_VERSIONHOLDER_/$(VERSION)/g" < $(SRC_DIR)/$* > $@ clean: rm -rf $(TARGET_DIR)