# Copyright (C) 2006-2009, Parrot Foundation.
# $Id: ext.in 43593 2010-01-26 02:39:50Z jkeenan $

# setup of commands
@make_set_make@
MAKE      = @make@
PERL      = @perl@
RM_F      = @rm_f@

# add new languages here
# remove obsolete languages here
EXT = \
    Parrot-Embed

# the default target
all: $(EXT)

# hard-code these for now
test: Parrot-Embed
	- cd Parrot-Embed && $(MAKE) test


# This is a listing of all targets, that are meant to be called by users
help:
	@echo ""
	@echo "Following targets are available for the user:"
	@echo ""
	@echo "  all:          Make a lot of language implementations."
	@echo "                This is the default."
	@echo "  test:         Unified test suite for a lot of languages."
	@echo ""
	@echo "  clean:        Clean up a lot of languages."
	@echo ""
	@echo "  help:         Print this help message."
	@echo ""
	@echo "Following languages are available:"
	@echo "  $(LANGUAGES)"
	@echo "A particular language <lang> can be built, tested and cleand up"
	@echo "  make <lang>"
	@echo "  make <lang>.test"
	@echo "  make <lang>.clean"
	@echo "For the status of individual languages see:"
	@echo " https://trac.parrot.org/parrot/wiki/Languages"
	@echo ""

clean: \
    Parrot-Embed.clean

#
# Extension specific targets
#

# The *.dummy targets are a replacement for the target .PHONY in 'GNU make'

Parrot-Embed : Parrot-Embed.dummy

Parrot-Embed.dummy:
#IF(win32):	- cd Parrot-Embed && $(PERL) Makefile.PL && nmake
#UNLESS(win32):	- cd Parrot-Embed && $(PERL) Makefile.PL && $(MAKE)

Parrot-Embed.clean:
#IF(win32):	- cd Parrot-Embed && nmake clean
#UNLESS(win32):	- cd Parrot-Embed && $(MAKE) clean

# Local variables:
#   mode: makefile
# End:
# vim: ft=make:
