Split list of scripts onto multiple lines
[user/alex/software/my-snippets.git] / Makefile
1 archdir=/mit/$(ATHENA_USER)/arch/
2 common=$(archdir)/common/
3 scripts=\
4     bores-me\
5     card-access\
6     grep-owners\
7     ldapfinger\
8     list-members\
9     list-of-lists-updater\
10     lists-lint\
11     rt-set\
12     rt-resolve check-host\
13     update-officers\
14     make-zcrypt-key\
15     get-emails\
16     mail-merge\
17     sshroot\
18     pag-screen
19 arches=i386_deb31  i386_deb40   i386_deb50  i386_rhel4
20
21 all : install
22
23 $(common)/% : %
24         cp $< $@
25
26 $(foreach script,$(scripts),$(foreach arch,$(arches),$(archdir)/$(arch)/bin/$(script))) : 
27 #$(archdir)/*/bin/* :
28         ln -s ../../common/$(@F) $(@D)
29
30 symlinks : $(foreach script,$(scripts),$(foreach arch,$(arches),$(archdir)/$(arch)/bin/$(script)))
31
32 script-copies : $(foreach script,$(scripts),$(common)/$(script))
33
34 install : script-copies symlinks