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
3ecf0b8a
Commit
3ecf0b8a
authored
May 24, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: add want- helper, also need phpunit soon
parent
610013dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
Makefile
Makefile
+10
-5
No files found.
Makefile
View file @
3ecf0b8a
...
@@ -155,7 +155,13 @@ CORE_DEPENDS?= apinger \
...
@@ -155,7 +155,13 @@ CORE_DEPENDS?= apinger \
wol
\
wol
\
zip
zip
manifest
:
force
want-git
:
force
@
${
PKG
}
info git
>
/dev/null
want-pear-PHP_CodeSniffer
:
force
@
${
PKG
}
info pear-PHP_CodeSniffer
>
/dev/null
manifest
:
want-git
@
echo
"name:
\"
${
CORE_NAME
}
\"
"
@
echo
"name:
\"
${
CORE_NAME
}
\"
"
@
echo
"version:
\"
${
CORE_VERSION
}
\"
"
@
echo
"version:
\"
${
CORE_VERSION
}
\"
"
@
echo
"origin:
\"
${
CORE_ORIGIN
}
\"
"
@
echo
"origin:
\"
${
CORE_ORIGIN
}
\"
"
...
@@ -222,7 +228,6 @@ package: force
...
@@ -222,7 +228,6 @@ package: force
echo
">>> Missing required file(s). Please run 'make package-keywords'"
>
&2
;
\
echo
">>> Missing required file(s). Please run 'make package-keywords'"
>
&2
;
\
exit
1
;
\
exit
1
;
\
fi
fi
@
${
PKG
}
info git
>
/dev/null
@
rm
-rf
${
WRKSRC
}
${
PKGDIR
}
@
rm
-rf
${
WRKSRC
}
${
PKGDIR
}
@
${
MAKE
}
DESTDIR
=
${
WRKSRC
}
FLAVOUR
=
${
FLAVOUR
}
install
@
${
MAKE
}
DESTDIR
=
${
WRKSRC
}
FLAVOUR
=
${
FLAVOUR
}
install
@
${
MAKE
}
DESTDIR
=
${
WRKSRC
}
scripts
@
${
MAKE
}
DESTDIR
=
${
WRKSRC
}
scripts
...
@@ -258,7 +263,7 @@ sweep: force
...
@@ -258,7 +263,7 @@ sweep: force
find
${
.CURDIR
}
/scripts
-type
f
-print0
|
\
find
${
.CURDIR
}
/scripts
-type
f
-print0
|
\
xargs
-0
-n1
scripts/cleanfile
xargs
-0
-n1
scripts/cleanfile
style
:
force
style
:
want-pear-PHP_CodeSniffer
@
(
phpcs
--tab-width
=
4
--standard
=
PSR2
${
.CURDIR
}
/src/opnsense/mvc
\
@
(
phpcs
--tab-width
=
4
--standard
=
PSR2
${
.CURDIR
}
/src/opnsense/mvc
\
||
true
)
>
${
.CURDIR
}
/.style.out
||
true
)
>
${
.CURDIR
}
/.style.out
@
echo
-n
"Total number of style warnings: "
@
echo
-n
"Total number of style warnings: "
...
@@ -268,7 +273,7 @@ style: force
...
@@ -268,7 +273,7 @@ style: force
@
cat
${
.CURDIR
}
/.style.out
@
cat
${
.CURDIR
}
/.style.out
@
rm
${
.CURDIR
}
/.style.out
@
rm
${
.CURDIR
}
/.style.out
stylefix
:
force
stylefix
:
want-pear-PHP_CodeSniffer
phpcbf
--standard
=
PSR2
${
.CURDIR
}
/src/opnsense/mvc
||
true
phpcbf
--standard
=
PSR2
${
.CURDIR
}
/src/opnsense/mvc
||
true
setup
:
force
setup
:
force
...
@@ -278,7 +283,7 @@ health: force
...
@@ -278,7 +283,7 @@ health: force
# check test script output and advertise a failure...
# check test script output and advertise a failure...
[
"
`
${
.CURDIR
}
/src/etc/rc.php_test_run
`
"
==
"FCGI-PASSED PASSED"
]
[
"
`
${
.CURDIR
}
/src/etc/rc.php_test_run
`
"
==
"FCGI-PASSED PASSED"
]
clean
:
clean
:
want-git
${
GIT
}
reset
--hard
HEAD
&&
${
GIT
}
clean
-xdqf
.
${
GIT
}
reset
--hard
HEAD
&&
${
GIT
}
clean
-xdqf
.
.PHONY
:
force
.PHONY
:
force
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