Kapisi/Makefile

32 lines
821 B
Makefile
Raw Permalink Normal View History

2020-10-08 16:33:19 -05:00
pkgdirname != basename `git config remote.origin.url` | sed 's/.git$$//'
2023-10-20 19:08:32 -05:00
optlist = bin examples playbooks roles
2020-10-08 16:33:19 -05:00
compile:
@echo Nothing to do
2023-10-20 19:08:32 -05:00
install: clean compile
2020-10-08 16:33:19 -05:00
mkdir -p ${pkgdir}/opt/aninix/${pkgdirname}/
2023-10-20 19:08:32 -05:00
for opt in ${optlist}; do cp -pr $$opt ${pkgdir}/opt/aninix/${pkgdirname}/${opt}; done
make checkperm
2020-10-08 16:33:19 -05:00
clean:
2023-10-20 19:08:32 -05:00
git clean -fdX
uninstall:
rm -Rf ${pkgdir}/opt/aninix/${pkgdirname}/
2020-10-08 16:33:19 -05:00
2023-11-30 02:44:01 -06:00
test: compile
#python3 -m pytest
checkperm:
chown -R root: ${pkgdir}/opt/aninix/${pkgdirname}/
chmod 0755 ${pkgdir}/opt/aninix/${pkgdirname}/
chmod -R a+r ${pkgdir}/opt/aninix/${pkgdirname}/
2020-10-08 16:33:19 -05:00
diff:
@echo Nothing to do.
2023-10-20 19:08:32 -05:00
for opt in ${optlist}; do diff -r ${pkgdir}/opt/aninix/${pkgdirname}/${opt} $$opt; done
2020-10-08 16:33:19 -05:00
reverse:
2023-10-20 19:08:32 -05:00
for opt in ${optlist}; do rsync -avzlp ${pkgdir}/opt/aninix/${pkgdirname}/${opt}/ $$opt; done