41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
INSTALLDIR = ${pkgdir}/usr/local/bin
|
|
INSTALLLIST = ./maat-builder
|
|
OWNER=root
|
|
PERMS=0755
|
|
|
|
|
|
compile: /bin/bash
|
|
@echo Nothing to compile.
|
|
|
|
install: ${INSTALLLIST}
|
|
mkdir -p ${INSTALLDIR}
|
|
mkdir -p /srv/maat/src
|
|
mkdir -p /srv/maat/pkg
|
|
mkdir -p /srv/maat/web
|
|
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:
|
|
./maat-builder -T
|
|
|
|
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
|