Makefile for the scripts
authorAlex Dehnert <adehnert@mit.edu>
Thu, 29 Oct 2009 15:26:58 +0000 (11:26 -0400)
committerAlex Dehnert <adehnert@mit.edu>
Thu, 29 Oct 2009 15:26:58 +0000 (11:26 -0400)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..3802901
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+archdir=/mit/$(ATHENA_USER)/arch/
+common=$(archdir)/common/
+scripts=bores-me  card-access  grep-owners  ldapfinger list-members  list-of-lists-updater  lists-lint
+arches=i386_deb31  i386_deb40  i386_deb50  i386_rhel4
+
+all : install
+
+$(common)/% : %
+       cp $< $@
+
+$(foreach script,$(scripts),$(foreach arch,$(arches),$(archdir)/$(arch)/bin/$(script))) : 
+#$(archdir)/*/bin/* :
+       ln -s ../../common/$(@F) $(@D)
+
+symlinks : $(foreach script,$(scripts),$(foreach arch,$(arches),$(archdir)/$(arch)/bin/$(script)))
+
+script-copies : $(foreach script,$(scripts),$(common)/$(script))
+
+install : script-copies symlinks