Skip to content

Commit

Permalink
Updated Makefile to also make StxTyper
Browse files Browse the repository at this point in the history
  • Loading branch information
evolarjun committed Mar 4, 2024
1 parent 9eb3f76 commit d10b6cb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ CXX=g++
COMPILE.cpp= $(CXX) $(CPPFLAGS) $(SVNREV) $(DBDIR) $(TEST_UPDATE_DB) -c


.PHONY: all clean install release
.PHONY: all clean install release stxtyper test

BINARIES= amr_report amrfinder amrfinder_index amrfinder_update fasta_check fasta_extract fasta2parts gff_check dna_mutation mutate

all: $(BINARIES)
all: $(BINARIES) stxtyper

release: clean
svnversion . > version.txt
Expand Down Expand Up @@ -151,18 +151,21 @@ mutateOBJS=mutate.o common.o alignment.o seq.o
mutate: $(mutateOBJS)
$(CXX) -o $@ $(mutateOBJS)


stxtyper:
$(MAKE) -C stxtyper

clean:
rm -f *.o
rm -f $(BINARIES)
$(MAKE) -C stxtyper clean

install:
@if [ ! -e $(DESTDIR)$(bindir) ]; \
then \
mkdir -p $(DESTDIR)$(bindir); \
fi
$(INSTALL) $(BINARIES) $(DESTDIR)$(bindir)
make -C stxtyper install PREFIX=$(PREFIX) bindir=$(bindir)

# amrfinder binaries for github binary release
GITHUB_FILE=amrfinder_binaries_v$(VERSION_STRING)
Expand All @@ -187,3 +190,4 @@ github_binaries:

test : $(DISTFILES) Makefile *.cpp *.hpp *.inc test_dna.fa test_prot.fa test_prot.gff test_dna.fa test_dna.expected test_prot.expected test_both.expected
./test_amrfinder.sh
make -C stxtyper test

0 comments on commit d10b6cb

Please sign in to comment.