-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (37 loc) · 1.23 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
default: all
help:
@echo 'Usage: make [target]'
@echo ''
@echo ' Possible targets:'
@echo ''
@echo ' all -> compile all needed files'
@echo ' fsrc -> compile the src directory'
@echo ' py -> compile cython module in interf directory'
@echo ' iralib -> compile the IRA library'
@echo ''
@echo ' clean -> remove all files generated by make'
@echo ' clean-fsrc -> clean the src diretory'
@echo ' clean-py -> clean the interf directory'
@echo ' clean-ira -> clean the IRA directory'
@echo ''
@echo ' Quitting.'
all: iralib fsrc py
iralib:
@echo ' =============== now compiling IRA library'
@if echo "`git submodule status|cut -c 1`" = "-"; then cd IRA; git submodule update --init; fi
@cd IRA; git submodule update --init; cd -
@cd IRA/src; make all; cd -
fsrc:
@echo ' =============== now compiling the itm src'
@cd src; make; cd -
py:
@echo ' =============== now compiling the py_itm extension'
@cd interf; python3 setup.py build_ext --inplace; cd -
clean-ira:
@cd IRA/src; make clean; cd -
@git submodule deinit IRA
clean-fsrc:
@cd src; make clean; cd -
clean-py:
@cd interf; rm -rf build/ py_itm.*.so __pycache__ py_itm.c; cd -
clean: clean-fsrc clean-py