-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·30 lines (26 loc) · 1.53 KB
/
Makefile
File metadata and controls
executable file
·30 lines (26 loc) · 1.53 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
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
PERL ?= $(filter /%,$(shell /bin/sh -c 'type perl'))
VERSION := 0.9.2025.10.23
YEAR := 2025
PROGRAM := classigntax clblastdbcmd clblastprimer clblastseq clcalcfastqstatv clclassseqv clclusterstdv clconcatpairv clconvrefdb cldenoiseseqd clderepblastdb cldivseq clelimdupacc clestimateconc clextractdupacc clextractuniqacc clfillassign clfilterclass clfilterseq clfilterseqv clfiltersum clidentseq climportfastq clmakeblastdb clmakecachedb clmakeidentdb clmaketaxdb clmaketsv clmakeuchimedb clmakexml clmergeassign clplotwordcloud clrarefysum clrecoverseqv clremovechimev clremovecontam clretrieveacc clshrinkblastdb clsplitseq clsumclass clsumtaxa cltruncprimer
all: $(PROGRAM)
%: %.pl
echo '#!'$(PERL) > $@
echo "use lib '$(PREFIX)/share/claident/lib/perl5';" >> $@
$(PERL) -npe "s/buildno = '0\.9\.x'/buildno = '$(VERSION)'/;s/ 2011-XXXX / 2011-$(YEAR) /" $< >> $@
install: $(PROGRAM)
chmod 755 $^
mkdir -p $(BINDIR)
cp $^ $(BINDIR)
mkdir -p $(PREFIX)/share/claident
mkdir -p $(PREFIX)/share/claident/taxdb
mkdir -p $(PREFIX)/share/claident/blastdb
mkdir -p $(PREFIX)/share/claident/uchimedb
mkdir -p $(PREFIX)/share/claident/lib/perl5
echo "CLAIDENTHOME=$(PREFIX)/share/claident" > $(PREFIX)/share/claident/.claident
echo "TAXONOMYDB=$(PREFIX)/share/claident/taxdb" >> $(PREFIX)/share/claident/.claident
echo "BLASTDB=$(PREFIX)/share/claident/blastdb" >> $(PREFIX)/share/claident/.claident
echo "UCHIMEDB=$(PREFIX)/share/claident/uchimedb" >> $(PREFIX)/share/claident/.claident
clean:
rm $(PROGRAM)