Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
bd23c117
Commit
bd23c117
authored
Jul 26, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mk: refactor install/plist code a wee bit
parent
9890172c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
28 deletions
+21
-28
tree.mk
Mk/tree.mk
+15
-0
Makefile
contrib/Makefile
+3
-15
Makefile
pkg/Makefile
+3
-13
No files found.
Mk/tree.mk
0 → 100644
View file @
bd23c117
all:
install:
.for TREE in ${TREES}
@mkdir -p ${DESTDIR}${ROOT}
@cp -vr ${TREE} ${DESTDIR}${ROOT}
.endfor
plist:
.for TREE in ${TREES}
@(cd ${TREE}; find * -type f) | \
xargs -n1 printf "${ROOT}/${TREE}/%s\n"
.endfor
.PHONY: install plist
contrib/Makefile
View file @
bd23c117
all
:
ROOT
=
/usr/local/share
TREES
=
openvpn mobile-broadband-provider-info
install
:
.include
"../Mk/tree.mk"
@
mkdir
-p
${
DESTDIR
}
/usr/local/share
@
cp
-vr
${
.CURDIR
}
/openvpn
${
DESTDIR
}
/usr/local/share/
@
cp
-vr
${
.CURDIR
}
/mobile-broadband-provider-info
\
${
DESTDIR
}
/usr/local/share/
plist
:
@
(
cd
${
.CURDIR
}
/openvpn
;
find
*
-type
f
)
|
\
xargs
-n1
printf
"/usr/local/share/openvpn/%s
\n
"
@
(
cd
${
.CURDIR
}
/mobile-broadband-provider-info
;
find
*
-type
f
)
|
\
xargs
-n1
printf
\
"/usr/local/share/mobile-broadband-provider-info/%s
\n
"
.PHONY
:
install plist
pkg/Makefile
View file @
bd23c117
all
:
ROOT
=
/usr/local/etc/pkg
TREES
=
repos fingerprints
install
:
.include
"../Mk/tree.mk"
@
mkdir
-p
${
DESTDIR
}
/usr/local/etc/pkg
@
cp
-vr
${
.CURDIR
}
/repos
${
DESTDIR
}
/usr/local/etc/pkg/
@
cp
-vr
${
.CURDIR
}
/fingerprints
${
DESTDIR
}
/usr/local/etc/pkg/
plist
:
@
(
cd
${
.CURDIR
}
/repos
;
find
*
-type
f
)
|
\
xargs
-n1
printf
"/usr/local/etc/pkg/repos/%s
\n
"
@
(
cd
${
.CURDIR
}
/fingerprints
;
find
*
-type
f
)
|
\
xargs
-n1
printf
"/usr/local/etc/pkg/fingerprints/%s
\n
"
.PHONY
:
install plist
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