annotate Makefile @ 0:1d1b9e1b2e2f draft

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