Make sed usage compatible with BSD-style seds

This commit is contained in:
Konrad Hinsen 2018-03-30 15:58:21 +02:00
parent 1feab77c59
commit 25b238ea14

View File

@ -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)