Commit 6b75286f authored by Federico Vaga's avatar Federico Vaga

[sw] on RPM build just copy files

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 0dabc07e
......@@ -34,10 +34,16 @@ dkms_install:
$(eval $@_dst := $(shell mktemp -d))
@mkdir -p $($@_dst)
@mkdir -p $(DST)
ifdef RPMBUILD
# We already did the file selection when producing the tar.gz
# Just copy
@cp -a $(GCORES)/* $(DST)
else
@$(GIT) archive --format=tar -o $($@_dst)/$(DIR_NAME).tar --prefix=$(DIR_NAME)/ HEAD
@cd $($@_dst) && tar -xf $(DIR_NAME).tar
@mv $($@_dst)/$(DIR_NAME)/* $(DST) && rm -rf $($@_dst)
@cp $(GCORES)/common.mk $(DST)
endif
@sed -e '2,$$d' -i $(DST)/common.mk
@sed -r -i -e "s/@PKGVER@/$(VERSION)/" $(DST)/dkms.conf
@sed -e "15d" -e "6,13d" -e "23,26d" -e '33,$$d' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment