summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-08-16 20:02:50 +0200
committerMichael Schwarz <michi.schwarz@gmail.com>2015-08-27 15:30:31 +0200
commit75af06b93ef9bd912d0e77381ee172a7dd4881b9 (patch)
treef8db24c179ab8c311b3ee681b7247c3772f00998
parent55e6362bb69ca542458ccc6d397354e190d155db (diff)
downloadpogojig-75af06b93ef9bd912d0e77381ee172a7dd4881b9.tar.gz
pogojig-75af06b93ef9bd912d0e77381ee172a7dd4881b9.tar.bz2
pogojig-75af06b93ef9bd912d0e77381ee172a7dd4881b9.zip
Makefile: Fixed a potential bug which would include too many files.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index da444d9..18a2b8f 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 -type f -not \( \( -name '.*' -or -name '* *' \) -prune \))
+SRC_FILES := $(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)))