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 $@ @touch $@
$(HOST_TARGETS): $(TARGET_DIR)/%: $(SRC_DIR)/% $(TARGET_DIR)/.d $(HOST_TARGETS): $(TARGET_DIR)/%: $(SRC_DIR)/% $(TARGET_DIR)/.d
cp $(SRC_DIR)/$* $@ sed -e "s/_VERSIONHOLDER_/$(VERSION)/g" < $(SRC_DIR)/$* > $@
sed -i "s/_VERSIONHOLDER_/$(VERSION)/g" $@
clean: clean:
rm -rf $(TARGET_DIR) rm -rf $(TARGET_DIR)