Commit graph

30 commits

Author SHA1 Message Date
Michael Schwarz
5c05570730 Only convert SVG to Asymptote/DXF if necessary.
Instead of always converting all SVG files to both Asymptote and DXF, only the formats which may be used as dependencies are compiled.
2015-09-29 23:08:56 +02:00
Michael Schwarz
883883e41f Added some missing comments in the make file. 2015-09-16 01:54:54 +02:00
Michael Schwarz
24a60718eb Implemented Asymptote dependency tracking. 2015-09-16 01:50:24 +02:00
Michael Schwarz
e595de1b87 Convert all SVG file to DXF and Asymptote.
Currently, the user has to configure which SVG files are exported to DXF and which to Asymptote, without a possibility to do both.

With this change, all SVG files are exported to both file formats, if necessary.
2015-09-16 01:50:15 +02:00
Michael Schwarz
365d639ae4 Ignore $PYTHONPATH.
We only use standard library features and thus can safely ignore PYTHONPATH.
2015-09-16 01:41:46 +02:00
Michael Schwarz
4a1b8166e1 Only print abstract information about commands being executed.
Most commands only show the python wrapper being called, which does not tell the user much anyways.
2015-09-16 01:41:46 +02:00
Michael Schwarz
a6b45d8e86 Remove targets when commands fail.
The make file now removes targets when commands fail. In some cases (e.g. generating files), an error would lead to a half-written file being left behind and that file would not get updated in the next invocation of `make`.
2015-09-16 01:41:45 +02:00
Michael Schwarz
853c56a38b Fixed automatism which clobbered file name extensions. 2015-08-27 15:30:31 +02:00
Michael Schwarz
478c3df1f1 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
2015-08-27 15:30:31 +02:00
Michael Schwarz
75af06b93e Makefile: Fixed a potential bug which would include too many files. 2015-08-27 15:30:31 +02:00
Michael Schwarz
a2ce9df576 Makefile: Fixed missing dependencies.
Asymptote and OpenSCAD targets would not include intermediate files in their dependencies.
2015-08-08 21:56:03 +02:00
Michael Schwarz
3971ddf256 Reworked make file.
This time to remove duplicate functionality in generating list of different products.
2015-08-07 02:03:38 +02:00
Michael Schwarz
6c1fefff1b Makefile: Fix duplicate dependency warning. 2015-08-07 02:03:36 +02:00
Michael Schwarz
5a1604ce20 Use Python script to run Asymptote. 2015-08-07 02:03:33 +02:00
Michael Schwarz
4a103f6dba Integrated Asymptote compilation into makefile. 2015-08-06 16:32:59 +02:00
Michael Schwarz
14f078c821 Inkscape export: Renamed module to inkscape.
This module will later be used for other export types than just DXF.
2015-08-06 16:32:59 +02:00
Michael Schwarz
7a1f69c474 Simplified makefile. 2015-08-06 16:32:58 +02:00
Michael Schwarz
e232c40ef7 Compile OpenSCAD files to DXF.
This adds support to selectively compile some OpenSCAD files to DXF instead of STL.
2015-03-15 12:12:01 +01:00
Michael Schwarz
dc6284662b Added makefile targets to build the project to a certain step. 2015-03-09 18:29:49 +01:00
Michael Schwarz
ff502f1d22 Fixed failure when settings.mk or config.mk doesn't exist. 2015-03-08 14:06:50 +01:00
Michael Schwarz
36c4355735 Re-compile on makefile change. 2015-03-07 12:24:57 +01:00
Michael Schwarz
09b8f8c126 Support for setting the DXF export quality. 2015-03-07 12:24:55 +01:00
Michael Schwarz
b424b1bf75 makefile: Call find only once. 2015-03-07 12:23:59 +01:00
Michael Schwarz
c6ebf8db53 Added a warning for when the src directory contains files with spaces in their names. 2015-03-07 12:23:59 +01:00
Michael Schwarz
f9fa53eef8 Added support for recording dependencies while compiling OpenSCAD files. 2014-12-12 11:44:29 +01:00
Michael Schwarz
8e5a1520cd Moved DXF export scripts to separate directory. 2014-12-10 22:13:34 +01:00
Michael Schwarz
785aec3aa6 Replaced Script used for DXF export by more advanced version working with Inkscape 0.99. 2014-12-06 14:40:00 +01:00
Michael Schwarz
b15e1c4a98 Make all generated files, even if they're not used by the make file. 2014-12-04 10:18:08 +01:00
Michael Schwarz
b3f93f02fd Let the script to generate the sources also open the resulting files. 2014-12-04 10:17:40 +01:00
Michael Schwarz
16d3e4a963 First version of the template project. 2014-11-27 18:18:27 +01:00