Mercurial > repos > petr-novak > repeatrxplorer
comparison Makefile @ 0:1d1b9e1b2e2f draft
Uploaded
author | petr-novak |
---|---|
date | Thu, 19 Dec 2019 10:24:45 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1d1b9e1b2e2f |
---|---|
1 #!/bin/bash | |
2 | |
3 CC=g++ | |
4 CFLAGS= -ansi -O5 -Wall | |
5 LDFLAGS= -ansi -lm -Wall | |
6 EXEC=bin/louvain_community bin/louvain_convert bin/louvain_hierarchy | |
7 OBJ1= louvain/graph_binary.o louvain/community.o | |
8 OBJ2= louvain/graph.o | |
9 | |
10 DNA_DB=databases/dna_database_masked.fasta.nhr | |
11 PROT_DB=re_databases/protein_database_viridiplantae_v3.0.fasta.phr | |
12 TRNA_DB=databases/tRNA_database.fasta.nhr | |
13 | |
14 | |
15 all: $(EXEC) $(DNA_DB) $(PROT_DB) $(TRNA_DB) | |
16 | |
17 bin/louvain_community : $(OBJ1) louvain/main_community.o | |
18 $(CC) -o $@ $^ $(LDFLAGS) | |
19 | |
20 bin/louvain_convert : $(OBJ2) louvain/main_convert.o | |
21 $(CC) -o $@ $^ $(LDFLAGS) | |
22 | |
23 bin/louvain_hierarchy : louvain/main_hierarchy.o | |
24 $(CC) -o $@ $^ $(LDFLAGS) | |
25 | |
26 $(DNA_DB) : databases/dna_database_masked.fasta | |
27 makeblastdb -in databases/dna_database_masked.fasta -out databases/dna_database_masked.fasta -dbtype nucl | |
28 | |
29 $(TRNA_DB) : databases/tRNA_database.fasta | |
30 makeblastdb -in databases/tRNA_database.fasta -out databases/tRNA_database.fasta -dbtype nucl | |
31 | |
32 $(PROT_DB) : config.py | |
33 ./fetch_databases.sh | |
34 | |
35 dna_database: $(DFASTA) | |
36 ########################################## | |
37 # Generic rules | |
38 ########################################## | |
39 | |
40 %.o: %.cpp %.h | |
41 $(CC) -o $@ -c $< $(CFLAGS) | |
42 | |
43 %.o: %.cpp | |
44 $(CC) -o $@ -c $< $(CFLAGS) | |
45 | |
46 clean: | |
47 rm -f *.o *~ $(EXEC) |