# $Id: root.in 14590 2006-09-12 17:26:44Z coke $

# Makefile for languages/HQ9plus

# Setup of some commands
PARROT         = ../../parrot@exe@
PERL           = @perl@
RM_RF          = @rm_rf@

default: all
all: build 

help:
	@echo ""
	@echo "Following targets are available for the user:"
	@echo ""
	@echo "  all:               HQ9plus.pbc"
	@echo "                     This is the default."
	@echo "Testing:"
	@echo "  test:              Run the test suite."
	@echo ""
	@echo "Cleaning:"
	@echo "  clean:             Basic cleaning up."
	@echo "  realclean:         Removes also files generated by 'Configure.pl'"
	@echo "  distclean:         Removes also anything built, in theory."
	@echo ""
	@echo "Misc:"
	@echo "  help:              Print this help message."
	@echo ""

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

build: HQ9plus.pbc 

HQ9plus.pbc: HQ9plus.pir
	$(PARROT) -o HQ9plus.pbc HQ9plus.pir 

clean:
	$(RM_RF) \
HQ9plus.pbc \
"t/*.HQ9plus" \
"t/*.out"

realclean: clean
	$(RM_RF) Makefile

distclean: realclean
