Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Beam Positoning Monitor - Software
Commits
60449e8d
Commit
60449e8d
authored
Mar 18, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/Makefile: install ldconfig scripts
parent
58aa1aea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Makefile
scripts/Makefile
+8
-0
No files found.
scripts/Makefile
View file @
60449e8d
...
...
@@ -14,16 +14,22 @@ MAKE ?= make
# is defined as the location of init scripts and must be placed in a specific
# place. The main use of thuis variable is for testing the build system
SCRIPTS_PREFIX
?=
# Location of ldconf directory
LDCONFIG_DIR
?=
/etc/ld.so.conf.d
# Local ldconfig files
LDCONFIG_LOCAL_DIR
:=
ldconf
PWD
=
$(
shell
pwd
)
# OS information
SERVICE_NAME
=
bpm-sw
INIT_SYSTEM
:=
$(
shell
./get-init-system.sh
)
SCRIPTS_FULL_NAME
:=
$(
shell
cd
$(INIT_SYSTEM)
&&
find
.
-type
f
)
LDCONFIG_FULL_NAME
=
$(
shell
cd
$(LDCONFIG_LOCAL_DIR)
&&
find
.
-type
f
)
# Strip off a leading ./
SCRIPTS
=
$
(
SCRIPTS_FULL_NAME:./%
=
%
)
LDCONFIG_SCRIPTS
=
$
(
LDCONFIG_FULL_NAME:./%
=
%
)
.PHONY
:
all clean mrproper install uninstall
...
...
@@ -33,10 +39,12 @@ all:
install
:
$
(
foreach script,
$(SCRIPTS)
,mkdir
-p
$
(
dir
${
SCRIPTS_PREFIX
}
/
$(script)
)
$(CMDSEP)
)
$
(
foreach script,
$(SCRIPTS)
,cp
--preserve
=
mode
$(INIT_SYSTEM)
/
$(script)
${
SCRIPTS_PREFIX
}
/
$(script)
$(CMDSEP)
)
$
(
foreach ldscript,
$(LDCONFIG_SCRIPTS)
,cp
--preserve
=
mode
$(LDCONFIG_LOCAL_DIR)
/
$(ldscript)
${
LDCONFIG_DIR
}
/
$(ldscript)
$(CMDSEP)
)
./enable-service.sh
-s
$(SERVICE_NAME)
uninstall
:
./disable-service.sh
-s
$(SERVICE_NAME)
$
(
foreach ldscript,
$(LDCONFIG_SCRIPTS)
,ls
${
LDCONFIG_DIR
}
/
$(ldscript)
$(CMDSEP)
)
$
(
foreach script,
$(SCRIPTS)
,rm
-f
${
SCRITS_PREFIX
}
/
$(script)
$(CMDSEP)
)
clean
:
...
...
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