Let the script to generate the sources also open the resulting files.
This commit is contained in:
parent
260351e7db
commit
b3f93f02fd
2 changed files with 2 additions and 2 deletions
2
Makefile
2
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 $@
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue