#############################################################
# 
# A part of Regexp/OCaml module.
# 
# (c) 2002-2003 Yutaka Oiwa. All Rights Reserved.
# 
# This file is distributed under the terms of the Q Public
# License version 1.0.
# 
#############################################################

# Makefile for toplevel directory

all:  all.rex all.once all.pragma
test: test.rex test.once
clean: clean.common clean.rex clean.once clean.pragma

uninstall: uninstall.rex uninstall.once uninstall.pragma
install: install.rex install.once install.pragma

REX_MAKE = cd pa_regexp_match; $(MAKE)
ONCE_MAKE = cd pa_once; $(MAKE)
PRAGMA_MAKE = cd pa_pragma; $(MAKE)

%.rex:
	$(REX_MAKE) $*

%.once:
	$(ONCE_MAKE) $*

%.pragma:
	$(PRAGMA_MAKE) $*

%.common:
	cd common; $(MAKE) $*

all.rex all.once: all.common
