# $Id: root.in 23007 2007-11-23 21:29:44Z bernhard $

# Makefile for languages/ook

# Set up of commands
PARROT        = ../../parrot
PERL          = @perl@
RM_F          = @rm_f@
RECONFIGURE   = $(PERL) @build_dir@/tools/dev/reconfigure.pl

# Set up directories
BUILD_DIR     = @build_dir@

default: all

help :
	@echo ""
	@echo "Following targets are available for the user:"
	@echo ""
	@echo "  build:             Create ook.pbc"
	@echo "                     This is the default."
	@echo ""
	@echo "  test:              run the test suite,"
	@echo ""
	@echo "  clean:             clean up temporary files"
	@echo ""
	@echo "  realclean:         clean up generated files"
	@echo ""
	@echo "  help:              print this help message"

# regenerate the Makefile
Makefile: config/makefiles/root.in
	cd $(BUILD_DIR) && $(RECONFIGURE) --step=gen::languages --languages=ook

all: build

test: build
	$(PERL) -I../../lib t/harness

build: ook.pasm
	$(PARROT) -o ook.pbc ook.pasm

clean:
	$(RM_F) core \
    "*.pbc" \
    "*~" \
    "hello.out" \
    "foo.p*"

realclean: clean
	$(RM_RF) Makefile


syntax highlighted by Code2HTML, v. 0.9.1