Revision 0459ff22c68c9f4379430fc397330d1787336a7a authored by peter on 16 December 2020, 06:41:15 UTC, committed by peter on 16 December 2020, 06:41:15 UTC
1 parent c12837f
Makefile
SHELL := /bin/bash
# simple makefile for development.
SRC=msprime/_msprimemodule.c
# The default target builds the C module in the simplest way.
cmodule: ${SRC}
python3 setup.py build_ext --inplace
# allchecks turns on as many checks as make sense when building
# Python-C extensions.
allchecks: ${SRC}
CFLAGS="-std=c99 -Wall -Wextra -Werror -Wno-unused-parameter" && \
CFLAGS+=" -Wno-missing-field-initializers -Wno-cast-function-type" && \
CFLAGS+=" --coverage" && \
export CFLAGS && python3 setup.py build_ext --inplace
# Turn on coverage builds
coverage: ${SRC}
rm -fR build
CFLAGS="-coverage" python3 setup.py build_ext --inplace
# Format the C code ready for a PR
clang-format:
clang-format -i lib/tests/* lib/*.[c,h]
tags:
ctags -f TAGS msprime/*.c lib/*.[c,h] msprime/*.py tests/*.py
clean:
rm -fR build
rm -f msprime/*.so
Computing file changes ...