ShadowArch/Admin/Makefile
2017-03-29 17:45:50 -05:00

23 lines
598 B
Makefile

LIST=arch-update clean-exim clean-exim-input close-guest fix-sound log-guest open-guest restart-service silent-guardian proxy simple-web
LOCATION=/root/bin
PERMISSION=0700
compile:
@echo Nothing to compile.
install: compile
mkdir -p ${LOCATION};
for i in ${LIST}; do cp ./$$i ${LOCATION}; done
make checkperm
reverse:
for i in ${LIST}; do cp ${LOCATION}/$$i .; done
test: ${LIST}
for i in ${LIST}; do [ "$$(grep -c '#/bin/bash' $$i)" -ne 1 ]; done
checkperm:
for i in ${LIST}; do chown root:root ${LOCATION}/$$i; chmod ${PERMISSION} ${LOCATION}/$$i; done
clean:
@echo Nothing to do.