summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xgenerate_sources.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 37a6547..81cbe15 100644
--- a/Makefile
+++ b/Makefile
@@ -44,4 +44,4 @@ $(foreach i,$(COMPILED_SCAD_FILES),$(eval $(i): $(filter $(dir $(i))%,$(LIBRARY_
# Rule for automaticlaly generated OpenSCAD files.
$(GENERATED_FILES): generate_sources.sh
- ./generate_sources.sh $@ > $@
+ ./generate_sources.sh $@
diff --git a/generate_sources.sh b/generate_sources.sh
index 2d33554..67fa258 100755
--- a/generate_sources.sh
+++ b/generate_sources.sh
@@ -13,7 +13,7 @@ function generate_file() {
if ! [ "$current_file_name" ]; then
echo "$file_name"
elif [ "$current_file_name" == "$file_name" ]; then
- "${generate_command[@]}"
+ "${generate_command[@]}" > "$file_name"
fi
}