####################################################################
#   Copyright (c) 1996 NPACT Working Group. You may copy,          #
#   distribute, and modify it freely as long as you preserve this  #
#   copyright and permission notice.                               #
#                                                                  #
#   NPACT Working Group is a joint force of                        #
#      NPAC at Syracuse University,                                #
#      PACT at Harbin Institute of Technology, and                 #
#      PACT at Peking University                                   #   
####################################################################

SHELL   = /bin/sh

srcdir      = @srcdir@
top_srcdir  = @top_srcdir@

VERSION = @VERSION@

SUBDIR  = include basicop xsageop hpf2dep hpfsc java2dep tools 

VPATH = .:${srcdir}

all: Makefile
	@echo "Recursively making subdir:" ${SUBDIR}
	@for i in ${SUBDIR}; \
	do (cd $$i; \
	echo "--- Making" $$i;\
	$(MAKE) "MAKE=$(MAKE)"); done

Makefile: ${srcdir}/Makefile.in
	@echo 
	@echo Please configure the package to generate new makefile ...
	@exit 1

clean:
	@for i in ${SUBDIR}; \
	do (cd $$i; $(MAKE) "MAKE=$(MAKE)" clean); done

install:
	@echo "Recursively installing subdir:" ${SUBDIR}
	@for i in ${SUBDIR}; \
	do (cd $$i; \
	echo "--- Installing" $$i;\
	$(MAKE) "MAKE=$(MAKE)" install); done

uninstall: 
	@for i in ${SUBDIR}; \
	do (cd $$i; $(MAKE) "MAKE=$(MAKE)" uninstall); done












