diff-memberships: add it to Makefile, README
[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     diff-memberships\
7     get-emails\
8     grep-owners\
9     ldapfinger\
10     list-of-lists-updater\
11     lists-lint\
12     mail-merge\
13     make-zcrypt-key\
14     rt-resolve\
15     rt-set\
16     sshroot\
17     update-officers\
18
19 arches=\
20     i386_deb31\
21     i386_deb40\
22     i386_deb50\
23     i386_rhel4\
24
25 all : install
26
27 $(common)/% : %
28         install -c -m 555 $< $@
29
30 $(foreach script,$(scripts),$(foreach arch,$(arches),$(archdir)/$(arch)/bin/$(script))) : 
31 #$(archdir)/*/bin/* :
32         ln -s ../../common/bin/$(@F) $(@D)
33
34 symlinks : $(foreach script,$(scripts),$(foreach arch,$(arches),$(archdir)/$(arch)/bin/$(script)))
35
36 script-copies : $(foreach script,$(scripts),$(common)/$(script))
37
38 install : script-copies symlinks