Skip to content

Commit

Permalink
Make keygen more make-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
ervanalb committed Jun 17, 2017
1 parent 096f831 commit 76c0a80
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 85 deletions.
34 changes: 34 additions & 0 deletions Makefile
@@ -0,0 +1,34 @@
# Makefile for keygen

# Executables
SCAD = OPENSCADPATH=src:build openscad
POLY = PYTHONPATH=/usr/share/inkscape/extensions bin/paths2openscad.py

SCAD_DIR = src
SVG_DIR = resources
POLY_DIR = build
STL_DIR = build

# Files to include
SVG_SRC = $(wildcard $(SVG_DIR)/*.svg)
SCAD_SRC = $(wildcard $(SCAD_DIR)/*.scad)

# Generated polygon files
POLY_OBJ = $(patsubst $(SVG_DIR)/%.svg,$(POLY_DIR)/%.gen.scad,$(SVG_SRC))

# Generated STL
STL_OBJ =

OBJECTS = $(POLYGON_OBJ) $(STL_OBJ)

# Assembler, compiler, and linker flags
POLYFLAGS =
SCADFLAGS =

# Targets
all: $(STL_OBJ)
poly: $(POLY_OBJ)
clean:
-rm -f $(OBJECTS)
$(POLY_DIR)/%.gen.scad: $(SVG_DIR)/%.svg
$(POLY) $(POLYFLAGS) --fname $@ $<
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions build/.gitignore
@@ -0,0 +1,2 @@
*
!.gitignore
18 changes: 0 additions & 18 deletions fm.gen.scad

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 76c0a80

Please sign in to comment.