Skip to content

Commit 4a4cda7

Browse files
author
Scott Zuyderduyn
committed
added version file and use it in Makefile to create distribution archive
1 parent ca44095 commit 4a4cda7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ else
5656
CFLAGS += -O3 -march=native
5757
endif
5858

59+
VERSION = $(shell cat VERSION)
60+
5961
install:
6062
@mkdir -p $(includedir)
6163
cp -a include/ecuda $(includedir)/ecuda
@@ -79,7 +81,7 @@ examples/% :: examples/%.cu
7981
$(CXX) $(CXXFLAGS) obj/$@.cu.o $(LDLIBS) -o bin/$@
8082

8183
dist:
82-
tar zcvf ecuda-dist.tar.gz LICENSE.txt include/ecuda/*.hpp test/*.cu benchmarks/*.cu
84+
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
8385

8486
docs: FORCE
8587
doxygen doxygen.cfg

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0

0 commit comments

Comments
 (0)