Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Platform-independent core collection
Commits
6b75286f
Commit
6b75286f
authored
Oct 22, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sw] on RPM build just copy files
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
0dabc07e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Makefile
software/Makefile
+6
-0
No files found.
software/Makefile
View file @
6b75286f
...
...
@@ -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'
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment