-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
86 lines (74 loc) · 1.99 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
TOPDIR=./
ifndef SRCDIR
SRCDIR=$(shell pwd)
endif
include $(TOPDIR)config_path
SUBDIRS = BindingInteraction src
ALLSUBDIRS = $(SUBDIRS) doc
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " clean to remove build files"
@echo " require to install python requirements of BindingInteraction"
@echo " init to prepare folders with external bash programs before installing BindingInteraction"
@echo " howto to show instructions in HTML format"
@echo " man to show manual of the pipeline"
#@echo " update to recompile python files of src/ and update executables in bin/ folder (for your own develop)"
#@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
#@echo " test to test the finished installation"
clean:
find . -name "*.pyc" -exec rm -f {} \;
find . -name "*~" -exec rm -f {} \;
find . -name "*.out" -exec rm -f {} \;
find . -name "*.arc" -exec rm -f {} \;
find . -name "*.log" -exec rm -f {} \;
find . -name "*.csv" -exec rm -f {} \;
rm -rf $(TOPDIR)/doc/html
rm -rf $(TOPDIR)/doc/latex
rm config_path
#install:
#mkdir -p $(BI)
#cp -rfu $(SRCDIR)/* $(BI)/
#cd $(BI)/
#$(PYTHON) BindingInteraction/compiler.py
#cd BindingInteraction/
#$(PYTHON) compiler.py
#cd ../
#mkdir -p bin
#mkdir -p src
#mv BindingInteraction/*.pyc bin/
#mv BindingInteraction/*.py src/
#mv Scripts/*.sh src/
#rm -rf BindingInteraction/
#rm -rf Scripts/
#mkdir -p work
#mkdir -p $(SCRATCH)
#mkdir -p conf
update:
cd $(BI)
cp src/*.py bin/
cd bin/
$(PYTHON) compiler.py
rm *.py
cd ../
require:
pip install -r requirements.txt
init:
mkdir -p scratch
mkdir -p conf
test:
dir="1"
@echo 'test '
@echo 'pwd $(PWD)...'
@echo ' srcdir: $(SRCDIR)...'
@echo '$(VIRTUAL_ENV)'
#ifeq ($(dir),1)
# @echo 'same pwd'
#endif
script:
cd BindingInteraction/
./organizer.sh $(BI)
cd ../
howto:
firefox docs/Instructions_installation.html
man:
firefox docs/BindingInteraction_Manual.html