# $Id: makefile,v 1.2 2001/01/04 14:33:26 amodigli Exp $
############################################################################
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		*/proc/makefile
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Copy *.prg files to common "proc" directory.
# .REMARKS 
# .AUTHOR	Carlos Guirao
# .VERSION 1.1  901102:         new directory structure CG.
# .VERSION 1.2  910212:         A bit faster.
# .VERSION 2.2  911015:         Simplified with soft links.
############################################################################
# $Name:  $
# $Revision: 1.2 $
# $Log: makefile,v $
# Revision 1.2  2001/01/04 14:33:26  amodigli
# Added Id, Name, Revision, Log conf. control info
#
############################################################################


include $(MIDASHOME)/$(MIDVERS)/local/default.mk

PROCDIR = ../../../proc

all: clean
	@(PCK=`pwd | sed -e 's/\/proc$$//' -e 's/^.*\/\(.*\)\/\(.*\)/\1\/\2/'`; \
	for file in *.prg; \
		do  $(LN) ../$$PCK/proc/$$file $(PROCDIR)/$$file; \
	done)


clean:
	@(OBJS=`ls *.prg` ; cd $(PROCDIR) ; rm -f $$OBJS)
