opnsense-core/Makefile
Franco Fichtner 727453c076 src: move all files (again)
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...  :)
2014-12-10 16:42:39 +01:00

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