From: Alex Dehnert Date: Thu, 29 Oct 2009 15:26:58 +0000 (-0400) Subject: Makefile for the scripts X-Git-Url: https://www.dehnerts.com/gitweb/?p=user%2Falex%2Fsoftware%2Fmy-snippets.git;a=commitdiff_plain;h=3a132063044b11e40f7f9edbe122c76573664687 Makefile for the scripts --- diff --git a/Makefile b/Makefile new file mode 100644 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