
ALLMACH=/afs/cs.cmu.edu/misc/alex/all_mach/omega/bin
BIN=/afs/cs.cmu.edu/misc/alex/@sys/omega/bin
LIB=/afs/cs.cmu.edu/misc/alex/all_mach/omega/lib

all: nametopath archiefilter archie/archie

archie/archie:
	(cd archie; make)

install: all
	cp nametopath        ${BIN}
	cp archiefilter      ${BIN}
	cp archie/archie     ${BIN}
	cp afn        	     ${ALLMACH}
	cp mybrowser         ${ALLMACH}
	cp alexupdate        ${ALLMACH}
	cp archia            ${ALLMACH}
	cp mountalex         ${ALLMACH}
	cp readmes           ${ALLMACH}
	cp alexaliases       ${LIB}

links:
	ln -s  ${ALLMACH}/afn                  ${BIN}/afn
	ln -s  ${ALLMACH}/mybrowser            ${BIN}/mybrowser
	ln -s  ${ALLMACH}/alexupdate           ${BIN}/alexupdate
	ln -s  ${ALLMACH}/archia               ${BIN}/archia
	ln -s  ${ALLMACH}/mountalex            ${BIN}/mountalex
	ln -s  ${ALLMACH}/readmes              ${BIN}/readmes

clean:
	(cd archie; make clean)
	/bin/rm -f nametopath archiefilter

