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