makefile (751B)
1 SERVER := localhost 2 FILESDIR = files 3 4 .PHONY: share pkgs env user dots tools sshd motd sec tidy 5 6 # https://blog.melski.net/2010/11/30/makefile-hacks-print-the-value-of-any-variable/ 7 share-%: 8 cd $* ; if [ ! -d ${FILESDIR} ] ; then mkdir ${FILESDIR} ; fi 9 cp 01-share/script $*/${FILESDIR}/share 10 11 pkgs: share-02-pkgs 12 cd 02-pkgs ; drist ${SERVER} 13 14 env: share-03-env 15 cd 03-env ; drist ${SERVER} 16 17 user: share-04-user 18 cd 04-user ; drist ${SERVER} 19 20 dots: share-05-dots 21 cd 05-dots ; drist ${SERVER} 22 23 tools: share-06-tools 24 cd 06-tools ; drist ${SERVER} 25 26 sshd: share-07-sshd 27 cd 07-sshd ; drist ${SERVER} 28 29 motd: share-08-motd 30 cd 08-motd ; drist ${SERVER} 31 32 sec: share-09-sec 33 cd 09-sec ; drist ${SERVER} 34 35 tidy: share-10-tidy 36 cd 10-tidy ; drist ${SERVER}