-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
29 lines (26 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: compile, clean, recompile
compile:
python setup.py build_ext --inplace
rm -fr build
# The reconstruction/ecoli/dataclasses/process/*.py files were generated by
# write_ode_file.py in Parca code.
# Fireworks writes launcher_20* and block_20*.
# `aesara-cache clear` clears the current $(aesara-cache) cache, not others, and
# leaves 3 small *.delete.me dirs for later in case they're in use, esp. on NFS.
clean:
rm -fr fixtures cache
(cd reconstruction/ecoli/dataclasses/process && rm -f equilibrium_odes.py two_component_system_odes*.py)
find . -name "*.pyc" -exec rm -rf {} +
find . -name "*.o" -exec rm -fr {} +
find . -name "*.so" -exec rm -fr {} +
rm -fr build
rm -fr launcher_20* block_20*
if [ "`aesara-cache | xargs du -sm | cut -f1`" -gt 30 ]; then \
echo "Clearing the aesara-cache since it's larger than threshold."; \
aesara-cache clear; \
fi
# Delete just the *.so libraries then (re)compile them.
# This is useful when switching to a different Python virtualenv.
recompile:
find . -name "*.so" -delete
make compile