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
0a75a1b7
Commit
0a75a1b7
authored
Feb 05, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/Makefile: add SCRIPTS_PREFIX for prefixing the install location of scripts
parent
f1546b6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Makefile
scripts/Makefile
+7
-3
No files found.
scripts/Makefile
View file @
0a75a1b7
...
...
@@ -10,7 +10,10 @@ OBJDUMP ?= $(CROSS_COMPILE)objdump
OBJCOPY
?=
$(CROSS_COMPILE)
objcopy
SIZE
?=
$(CROSS_COMPILE)
size
MAKE
?=
make
PREFIX
?=
# This SCRIPTS_PREFIX could be different than PREFIX, as SCRIPTS_PREFIX
# 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
?=
PWD
=
$(
shell
pwd
)
...
...
@@ -28,12 +31,13 @@ all:
# Makefile rules
install
:
$
(
foreach script,
$(SCRIPTS)
,cp
--preserve
=
mode
$(INIT_SYSTEM)
/
$(script)
${
PREFIX
}
/
$(script)
$(CMDSEP)
)
$
(
foreach script,
$(SCRIPTS)
,mkdir
-p
$
(
dir
${
SCRIPTS_PREFIX
}
/
$(script)
)
$(CMDSEP)
)
$
(
foreach script,
$(SCRIPTS)
,cp
--preserve
=
mode
$(INIT_SYSTEM)
/
$(script)
${
SCRIPTS_PREFIX
}
/
$(script)
$(CMDSEP)
)
./enable-service.sh
$(SERVICE_NAME)
uninstall
:
./disable-service.sh
$(SERVICE_NAME)
$
(
foreach script,
$(SCRIPTS)
,rm
-f
${
PREFIX
}
/
$(script)
$(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