Skip to content

Commit

Permalink
Changed handling of version number so it does not modify every compile
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Feb 22, 2018
1 parent fa203f4 commit 135c977
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
*.o
*.tar.gz
src/Eigen
src/version.h
example/output
test/output
./output
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ OBJS = $(SOURCES:.cpp=.o)

all: $(OUTPUT)

./src/version.h:
./src/version.h: ./VERSION
./scripts/gen_version_info.sh > src/version.h

$(OUTPUT): $(OBJS)
Expand Down Expand Up @@ -184,7 +184,6 @@ check: fast-check slow-check
check-all: check lengthy-check

clean:
rm $(SRC_DIR)/version.h
rm -vf $(SRC_DIR)/*.o
rm -vf $(SRC_DIR)/*~
rm -vf $(TEST_SRC_DIR)/*.o
Expand Down
4 changes: 4 additions & 0 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// version.h generated by GEMMA ./scripts/gen_version_info.sh
#define GEMMA_VERSION "0.98-pre1"
#define GEMMA_DATE "2018/02/10"
#define GEMMA_YEAR "2018"

0 comments on commit 135c977

Please sign in to comment.