# $Id: Makefile,v 1.4 2003/07/17 10:34:32 root Exp root $ EYES=neweye granada neworleans azores bermuda maui dubai cairo ensenada hongkong calcutta tokyo INVS=${EYES:S/^/getinv-/} METAS=${EYES:S/^/getmeta-/} INSTMETAS=${EYES:S/^/installgetmeta-/} KERNFLPS=${EYES:S/^/kernflp-/} HOST?=test info: @echo "all: all eyes" @echo "eyename: this eye" @echo "eyename-mfs: copy this eye on floppy" @echo "getinv-all: fetch all inventories" @echo "getmeta-all: getmeta from all hosts" @echo "installgetmeta-all: install getmeta on all hosts" @echo "getinv-eyename: fetch inventory" @echo "kern-flps: make hard links to kern.flp in this directory" @echo "META: collect all METAS into one" all: ${EYES} @echo "all Targets done." META:: rm META for i in ${EYES}; do echo $$i >> META; cat eyes/$$i/META >> META; echo >> META; done getinv-all: ${INVS} getmeta-all: ${METAS} installgetmeta-all: ${INSTMETAS} kern-flps: ${KERNFLPS} .for f in ${EYES} ${f}:: cd eyes/${f} ; make filesfrommeta ./scripts/floppy ${@} ${f}-mfs:: ${f} cd eyes/${f} ; make ddm getinv-${f}:: eyes/${f}/fs/usr/local/etc/apache scp root@${f}:/usr/local/etc/apache/httpd.conf eyes/${f}/fs/usr/local/etc/apache/httpd.conf scp root@${f}:/usr/local/etc/sunpendulum.conf eyes/${f}/fs/usr/local/etc/sunpendulum.conf getmeta-${f}:: -cd eyes/${f} ; make meta installgetmeta-${f}:: -cd eyes/${f} ; make install-getmeta eyes/${f}/fs/usr/local/etc/apache: mkdir -p eyes/${f}/fs/usr/local/etc/apache kernflp-${f}:: rm -f eyes/${f}/atesi/kern.flp ln kern.flp eyes/${f}/atesi/kern.flp .endfor