Makefile should only be needed for bootstrapping Ninja

This commit is contained in:
Robyn Speer 2015-05-08 12:39:31 -04:00
parent cddeae0acb
commit aa55e32450
2 changed files with 5 additions and 4 deletions

View File

@ -2,10 +2,6 @@ PYTHON = python
all: build.ninja
# make sure this package is in 'develop' mode and up to date
wordfreq_builder.egg-info/PKG-INFO: setup.py
$(PYTHON) setup.py develop
# build the Ninja file that will take over the build process
build.ninja: rules.ninja wordfreq_builder/ninja.py wordfreq_builder/config.py wordfreq_builder.egg-info/PKG-INFO
$(PYTHON) -m wordfreq_builder.cli.build_deps rules.ninja > build.ninja

View File

@ -15,6 +15,11 @@
# Variables
DATA = ./data
# How to build the build.ninja file itself. (Use the Makefile to get it the
# first time.)
rule build_deps
command = python -m wordfreq_builder.cli.build_deps $in > $out
# Splits the single file $in into $slices parts, whose names will be
# $prefix plus a two-digit numeric suffix.
rule split