summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 37a6547..a06a0d1 100644
--- a/Makefile
+++ b/Makefile
@@ -21,12 +21,12 @@ COMPILED_SCAD_FILES := $(filter-out $(LIBRARY_SCAD_FILES),$(SCAD_FILES))
STL_FILES := $(patsubst %.scad,%.stl,$(COMPILED_SCAD_FILES))
DXF_FILES := $(patsubst %.svg,%.dxf,$(SVG_FILES))
-# Everything.
-all: $(STL_FILES)
+# Everything. Also generates files which aren't compiled to anything else.
+all: $(STL_FILES) $(GENERATED_FILES)
# Everything^-1.
clean:
- rm -rf $(DXF_FILES) $(STL_FILES) $(GENERATED_SCAD_FILES)
+ rm -rf $(DXF_FILES) $(STL_FILES) $(GENERATED_FILES)
# Needs to be included after target all has been defined.
-include config.mk
@@ -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 $@