ShadowArch/Shared/Makefile

28 lines
771 B
Makefile
Raw Normal View History

2017-02-20 09:49:46 -06:00
LIST=bell bigorlittle compare-directories compress-all diff-args expand-all logged-shell standardize-folder whatismyip new-irssi-config replicate-ssh-profiles
2016-11-09 22:25:00 -06:00
LOCATION=/usr/local/bin
2017-06-19 16:36:22 -05:00
INSTALLER != curl -s https://aninix.net/foundation/installer-test.bash | /bin/bash
2016-11-09 22:25:00 -06:00
PERMISSION=0755
compile:
@echo Nothing to compile.
install: compile
mkdir -p ${LOCATION}
2016-11-18 11:10:05 -06:00
for i in ${LIST}; do cp ./$$i ${LOCATION}; done
2016-11-09 22:25:00 -06:00
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.
2017-06-19 16:36:22 -05:00
diff:
for i in ${LIST}; do diff ./$$i ${LOCATION}/$$i; done