mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
Makefile should only be needed for bootstrapping Ninja
This commit is contained in:
parent
cddeae0acb
commit
aa55e32450
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user