Maat/Makefile

38 lines
996 B
Makefile
Raw Normal View History

2019-02-18 07:56:39 -06:00
INSTALLDIR = ${pkgdir}/usr/local/bin
INSTALLLIST = ./maat-builder
OWNER=root
PERMS=0755
compile: /bin/bash
@echo Nothing to compile.
install: ${INSTALLLIST}
mkdir -p ${INSTALLDIR}
for i in ${INSTALLLIST}; do install -m ${PERMS} -o ${OWNER} $$i ${INSTALLDIR}; done
clean:
cat .gitignore | xargs rm -Rf
uninstall:
for i in ${INSTALLLIST}; do rm -Rf ${INSTALLDIR}/$$i; done
test:
for i in ${LIST}; do $$i -h; done
test-run:
bash ./maat -v -d ./repo -b ./build -w ./web -c /dev/null
diff:
for i in ${list}; do if [ -f ${INSTALLDIR}/$$i ]; then diff "$$i" "${INSTALLDIR}/$$i"; fi done
reverse:
for i in ${list}; do if [ -f ${INSTALLDIR}/$$i ]; then cp "${INSTALLDIR}/$$i" "$$i"; fi done
checkperm:
for i in ${list}; do chown ${OWNER}: "${INSTALLDIR}/$$i"; chmod ${PERMS} "${INSTALLDIR}/$$i"; done
chmod 0644 ${SUPPORTDIR}/maat.html
chown ${OWNER}: ${SUPPORTDIR}/maat.html
chmod 0644 ${pkgdir}/etc/lighttpd/conf.d/maat.conf
chown http: ${pkgdir}/etc/lighttpd/conf.d/maat.conf