Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bpm-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
bpm
bpm-sw
Commits
60449e8d
Commit
60449e8d
authored
9 years ago
by
Lucas Russo
Browse files
Options
Downloads
Patches
Plain Diff
scripts/Makefile: install ldconfig scripts
parent
58aa1aea
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Makefile
+8
-0
8 additions, 0 deletions
scripts/Makefile
with
8 additions
and
0 deletions
scripts/Makefile
+
8
−
0
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment