# $Id: root.in 22882 2007-11-18 17:29:14Z bernhard $

# Makefile for languages/HQ9plus

# Setup of some commands
PARROT        = ../../parrot@exe@
PERL          = @perl@
RM_RF         = @rm_rf@
BUILD_DIR     = @build_dir@
RECONFIGURE   = $(PERL) @build_dir@/tools/dev/reconfigure.pl

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 ""

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

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


syntax highlighted by Code2HTML, v. 0.9.1