Merge pull request #10 from khinsen/fix-for-macos

Make sed usage compatible with BSD-style seds
This commit is contained in:
Thomas Vogt 2018-04-01 10:28:37 +02:00 committed by GitHub
commit d26f22d6e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)