Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
90
Issues
90
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
d6a22b27
Commit
d6a22b27
authored
Aug 20, 2016
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better dependencies for make rpm and dist
parent
7d05f9b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
CMakeLists.txt
CMakeLists.txt
+5
-3
No files found.
CMakeLists.txt
View file @
d6a22b27
...
...
@@ -246,7 +246,7 @@ install(FILES conf/biboumi.cfg DESTINATION /etc/bib
## Dist target
## Generate a release tarball from the git sources
#
add_custom_
target
(
dist
add_custom_
command
(
OUTPUT
${
ARCHIVE_NAME
}
.tar.xz
COMMAND git archive --prefix=
${
ARCHIVE_NAME
}
/ --format=tar HEAD
>
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
ARCHIVE_NAME
}
.tar
# Append this specific file that is not part of the git repo
...
...
@@ -258,13 +258,15 @@ add_custom_target(dist
COMMAND
${
CMAKE_COMMAND
}
-E cmake_echo_color --cyan
"
${
ARCHIVE_NAME
}
.tar.xz created."
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
)
add_dependencies
(
dist catch
)
add_custom_target
(
dist
DEPENDS
${
ARCHIVE_NAME
}
.tar.xz
DEPENDS catch
)
add_custom_target
(
rpm
DEPENDS dist
COMMAND mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
COMMAND rpmbuild --define
"_topdir `pwd`/rpmbuild/"
--define
"_sourcedir `pwd`"
-ba biboumi.spec
)
add_dependencies
(
rpm dist
)
if
(
BOTAN_FOUND
)
set
(
STR_WITH_BOTAN
"Botan: yes"
)
...
...
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