Skip to content

Commit

Permalink
added version file and use it in Makefile to create distribution archive
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Zuyderduyn committed Apr 13, 2015
1 parent ca44095 commit 4a4cda7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ else
CFLAGS += -O3 -march=native
endif

VERSION = $(shell cat VERSION)

install:
@mkdir -p $(includedir)
cp -a include/ecuda $(includedir)/ecuda
Expand All @@ -79,7 +81,7 @@ examples/% :: examples/%.cu
$(CXX) $(CXXFLAGS) obj/$@.cu.o $(LDLIBS) -o bin/$@

dist:
tar zcvf ecuda-dist.tar.gz LICENSE.txt include/ecuda/*.hpp test/*.cu benchmarks/*.cu
tar zcvf ecuda-dist-${VERSION}.tar.gz LICENSE.txt Makefile MANIFEST doxygen.cfg include/ecuda/*.hpp test/*.cu benchmarks/*.cu examples/*.cu docs/*.html docs/*.css docs/*.dox docs/images/*.png

docs: FORCE
doxygen doxygen.cfg
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0

0 comments on commit 4a4cda7

Please sign in to comment.