File: Makefile

package info (click to toggle)
pirs 2.0.2%2Bdfsg-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,444 kB
  • sloc: cpp: 5,321; perl: 3,005; ansic: 592; makefile: 184; sh: 35
file content (52 lines) | stat: -rw-r--r-- 1,463 bytes parent folder | download | duplicates (6)
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
all: simulator stator symlinks

PERL_LIST = stator/baseCallingMatrix/baseCalling_Matrix_analyzer \
	stator/baseCallingMatrix/baseCalling_Matrix_calculator \
	stator/baseCallingMatrix/baseCalling_Matrix_merger \
	stator/alignment_stator \
	stator/indelstat_sam_bam \
	stator/gcContCvgBias/gc_coverage_bias_plot

simulator:
	cd ./src/pirs && ${MAKE} -f gccMakefile

stator:
	cd ./src/stator/gcContCvgBias && ${MAKE}

symlinks:
	-@ln -s ./src/pirs/pirs 2> /dev/null
	-@ln -s ./src/stator/gcContCvgBias/gc_coverage_bias 2> /dev/null
	-@ln -s ./src/stator/alignment_stator.pl alignment_stator 2> /dev/null
	-@for P in ${PERL_LIST}; do \
	    ln -s ./src/$${P}.pl `basename $${P}` 2> /dev/null; \
	done

test: all
	cd ./src/pirs && ${MAKE} -f gccMakefile test
	cd ./src/stator/gcContCvgBias && ${MAKE} test

distclean:
	cd ./src/pirs && ${MAKE} -f gccMakefile distclean
	cd ./src/stator/gcContCvgBias && ${MAKE} distclean
	-rm pIRS_*.tgz

tDATE := $(shell date +%Y%m%d)
tTIME := $(shell date +%H%M%S)
dist: all distclean
	@echo "Packing pIRS_$(tDATE).tar.gz ..."
	@tar -czf /var/tmp/pIRS_$(tDATE)_$(tTIME).tgz --exclude '.git*' .
	@mv /var/tmp/pIRS_$(tDATE)_$(tTIME).tgz ./pIRS_$(tDATE).tgz

clean: distclean
	cd ./src/pirs && ${MAKE} -f gccMakefile clean
	cd ./src/stator/gcContCvgBias && ${MAKE} clean
	-rm pirs gc_coverage_bias
	-@for P in ${PERL_LIST}; do \
	    rm `basename $${P}`; \
	done

.PHONY push:
	git push github master
	git push
	git push google master