python dependency generation

This commit is contained in:
Eric Van Albert
2017-06-17 19:18:58 -04:00
parent 76c0a80fd7
commit 11a5f9267d
3 changed files with 72 additions and 19 deletions

View File

@@ -21,14 +21,17 @@ STL_OBJ =
OBJECTS = $(POLYGON_OBJ) $(STL_OBJ)
# Assembler, compiler, and linker flags
POLYFLAGS =
SCADFLAGS =
# Targets
all: $(STL_OBJ)
all: all_stl
poly: $(POLY_OBJ)
$(STL_DIR)/key_blanks.d:
BUILD_DIR=$(STL_DIR) bin/parse.py $(SCAD_SRC)
clean:
-rm -f $(OBJECTS)
-rm -f $(POLY_DIR)/*.gen.scad $(STL_DIR)/*.stl
$(POLY_DIR)/%.gen.scad: $(SVG_DIR)/%.svg
$(POLY) $(POLYFLAGS) --fname $@ $<
include $(STL_DIR)/key_blanks.d