-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (36 loc) · 1.44 KB
/
Makefile
File metadata and controls
46 lines (36 loc) · 1.44 KB
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
SHELL:=/bin/bash -e
export SHELLOPTS=pipefail
.PHONY: all clean test
binPath = bin
libPath = lib
extPath = external
py_progs = simCtrl_runSim.py simCtrl_checkSimStatus.py simCtrl_postSimAnnotDistExtractor.py simCtrl_postSimFastaExtractor.py simCtrl_postSimMafExtractor.py simCtrl_postSimGFFtoBED.py
externals= evolver_codon_report.pl evolver_drawrev evolver_evostats_report.py evolver_gene_deactivate.sh evolver_gff_cdsutr2exons.py evolver_gff_exons2introns.py evolver_gff_featurestats.py evolver_gff_featurestats2.py evolver_gff_featurestats2.sh evolver_gff_fixgeneix.py evolver_handle_mobiles.pl evolver_merge_evostats.py evolver_mobile_report.pl evolver_trf2gff.py evolver_gtfStopCodonMerger.py evolver_gff_sort.py evolver_gff_gene_lengths.py
libraries = libSimControl.py libSimControlClasses.py evolver_gff.py
all: ${py_progs:%=${binPath}/%} $(foreach l,${libraries}, ${libPath}/$l) $(foreach f,${externals},${binPath}/$f)
${libPath}/%: src/% __init__.py
@mkdir -p $(dir $@)
touch ${libPath}/__init__.py
cp -f $< $@.tmp
mv $@.tmp $@
${libPath}/%: external/% __init__.py
@mkdir -p $(dir $@)
touch ${libPath}/__init__.py
cp -f $< $@.tmp
mv $@.tmp $@
${binPath}/%: src/%
@mkdir -p $(dir $@)
cp -f $< $@.tmp
chmod 755 $@.tmp
mv $@.tmp $@
${binPath}/%: external/%
@mkdir -p $(dir $@)
cp -f $< $@.tmp
chmod 755 $@.tmp
mv $@.tmp $@
__init__.py:
touch $@
clean:
rm -rf ${binPath} ${libPath}/ __init__.py*
test:
python src/simCtrl_testDependencies.py