Skip to content

Commit ff20f28

Browse files
committed
Add version to the output
1 parent 55864ae commit ff20f28

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ all: ../prophasm
99
../prophasm: prophasm.o
1010
$(CXX) $(CXXFLAGS) $(DFLAGS) $^ -o $@ -L. $(LIBS)
1111

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

1515
clean:

src/prophasm.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
* Check memory consumption (and put it here).
4040
*/
4141
#include "kseq.h"
42+
#include "version.h"
4243

4344
#include <zlib.h>
4445

@@ -92,6 +93,7 @@ void print_help(){
9293
std::cerr <<
9394
"\n" <<
9495
"Program: prophasm (a greedy assembler for k-mer set compression)\n" <<
96+
"Version: " VERSION "\n" <<
9597
"Contact: Karel Brinda <kbrinda@hsph.harvard.edu>\n" <<
9698
"\n" <<
9799
"Usage: prophasm [options]\n" <<

src/version.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#define VERSION "0.1.0"
2+

0 commit comments

Comments
 (0)