Fixed make warning.
This fixes a bug producing warnings like the following:
Makefile:91: target 'src/cube.pdf' given more than once in the same rule
This commit is contained in:
parent
75af06b93e
commit
478c3df1f1
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -32,7 +32,7 @@ filter_compiled = $(foreach i,$(patsubst %$1,%$2,$(filter %$1,$3)),$(if $(filter
|
|||
GENERATED_FILES := $(addsuffix .scad,$(basename $(shell ./generate_sources.sh)))
|
||||
|
||||
# All visible files in the src directory that either exist or can be generated. Ignore files whose names contain spaces.
|
||||
SRC_FILES := $(GENERATED_FILES) $(shell find src -not \( \( -name '.*' -or -name '* *' \) -prune \) -type f)
|
||||
SRC_FILES := $(sort $(GENERATED_FILES) $(shell find src -not \( \( -name '.*' -or -name '* *' \) -prune \) -type f))
|
||||
|
||||
# STL files produced from OpenSCAD files.
|
||||
SCAD_STL_FILES := $(call filter_compiled,.scad,.stl,$(filter-out $(FLAT_SCAD_FILES),$(SRC_FILES)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue