From ff20f28cc83f037d6e7714a8b60a7c727bc5ec47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20B=C5=99inda?= Date: Tue, 8 May 2018 17:16:56 -0400 Subject: [PATCH] Add version to the output --- src/Makefile | 2 +- src/prophasm.cpp | 2 ++ src/version.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/version.h diff --git a/src/Makefile b/src/Makefile index 94baede..2623b7d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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: diff --git a/src/prophasm.cpp b/src/prophasm.cpp index e427607..7518f1b 100644 --- a/src/prophasm.cpp +++ b/src/prophasm.cpp @@ -39,6 +39,7 @@ * Check memory consumption (and put it here). */ #include "kseq.h" +#include "version.h" #include @@ -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 \n" << "\n" << "Usage: prophasm [options]\n" << diff --git a/src/version.h b/src/version.h new file mode 100644 index 0000000..a3e6f45 --- /dev/null +++ b/src/version.h @@ -0,0 +1,2 @@ +#define VERSION "0.1.0" +