summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-08-23 00:28:53 +0200
committerMichael Schwarz <michi.schwarz@gmail.com>2015-08-27 15:30:31 +0200
commit478c3df1f136f00cc84772f4b41c96da32268b13 (patch)
treec9af2ad383ab9186a79796f91e98912e7c74a42d /Makefile
parent75af06b93ef9bd912d0e77381ee172a7dd4881b9 (diff)
downloadpogojig-478c3df1f136f00cc84772f4b41c96da32268b13.tar.gz
pogojig-478c3df1f136f00cc84772f4b41c96da32268b13.tar.bz2
pogojig-478c3df1f136f00cc84772f4b41c96da32268b13.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 18a2b8f..0fcf4c7 100644
--- a/Makefile
+++ b/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)))