diff options
author | Sylvain Jeaugey <sjeaugey@nvidia.com> | 2016-06-16 05:01:29 +0300 |
---|---|---|
committer | Sylvain Jeaugey <sjeaugey@nvidia.com> | 2016-06-16 05:03:08 +0300 |
commit | 67d1ab9106d8e6ae34aa13bbab65a2e3f867f6f8 (patch) | |
tree | ff44583ef3489f557c19dd13a25792e106c61065 /Makefile | |
parent | da6d2009e0e9521cca5d809137f5d96279fd3a50 (diff) |
Packaging : Generate shlibs.local
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -172,7 +172,8 @@ $(MPITSTDIR)/% : test/mpi/%.cu $(TSTDEP) #### PACKAGING #### CUDA_VERSION ?= $(shell ls $(CUDA_LIB)/libcudart.so.* | head -1 | rev | cut -d "." -f -2 | rev) - +CUDA_MAJOR = $(shell echo $(CUDA_VERSION) | cut -d "." -f 1) +CUDA_MINOR = $(shell echo $(CUDA_VERSION) | cut -d "." -f 2) DEB_GEN_IN := $(shell ls debian/*.in) DEB_GEN := $(DEB_GEN_IN:.in=) @@ -194,7 +195,8 @@ debian/% : debian/%.in sed -e "s/\$${nccl:Major}/$(VER_MAJOR)/g" \ -e "s/\$${nccl:Minor}/$(VER_MINOR)/g" \ -e "s/\$${nccl:Patch}/$(VER_PATCH)/g" \ - -e "s/\$${nccl:Cuda}/$(CUDA_VERSION)/g" \ + -e "s/\$${cuda:Major}/$(CUDA_MAJOR)/g" \ + -e "s/\$${cuda:Minor}/$(CUDA_MINOR)/g" \ -e "s/\$${nccl:Debian}/$(DEB_REVISION)/g" \ -e "s/\$${nccl:Timestamp}/$(DEB_TIMESTAMP)/g" \ $< > $@ |