Skip to content

Commit

Permalink
Add version to the output
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-brinda committed May 8, 2018
1 parent 55864ae commit ff20f28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ all: ../prophasm
../prophasm: prophasm.o
$(CXX) $(CXXFLAGS) $(DFLAGS) $^ -o $@ -L. $(LIBS)

prophasm.o: prophasm.cpp kseq.h
prophasm.o: prophasm.cpp $(wildcard *.h)
$(CXX) $(CXXFLAGS) $(DFLAGS) -c $<

clean:
Expand Down
2 changes: 2 additions & 0 deletions src/prophasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
* Check memory consumption (and put it here).
*/
#include "kseq.h"
#include "version.h"

#include <zlib.h>

Expand Down Expand Up @@ -92,6 +93,7 @@ void print_help(){
std::cerr <<
"\n" <<
"Program: prophasm (a greedy assembler for k-mer set compression)\n" <<
"Version: " VERSION "\n" <<
"Contact: Karel Brinda <[email protected]>\n" <<
"\n" <<
"Usage: prophasm [options]\n" <<
Expand Down
2 changes: 2 additions & 0 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define VERSION "0.1.0"

0 comments on commit ff20f28

Please sign in to comment.