mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
Make "src" the implicit "/usr/local" so that nobody can sneak in weird files in the base file system or potentially overwrite them. This is the last time, I swear... :)
30 lines
665 B
Makefile
30 lines
665 B
Makefile
all:
|
|
|
|
mount:
|
|
mount_unionfs ${.CURDIR}/src /usr/local
|
|
|
|
umount:
|
|
umount -f "<above>:${.CURDIR}/src"
|
|
|
|
install:
|
|
mkdir -p ${DESTDIR}/usr/local
|
|
cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local
|
|
|
|
lint:
|
|
find ${.CURDIR}/src -name "*.class" -print0 | xargs -0 -n1 php -l
|
|
find ${.CURDIR}/src -name "*.inc" -print0 | xargs -0 -n1 php -l
|
|
find ${.CURDIR}/src -name "*.php" -print0 | xargs -0 -n1 php -l
|
|
|
|
sweep:
|
|
find ${.CURDIR}/src ! -name "*.min.*" \
|
|
! -name "*.map" -type f -print0 | \
|
|
xargs -0 -n1 scripts/cleanfile
|
|
|
|
setup:
|
|
${.CURDIR}/src/etc/rc.php_ini_setup
|
|
|
|
clean:
|
|
git reset --hard HEAD && git clean -xdqf .
|
|
|
|
.PHONY: mount umount install lint sweep setup clean
|