# Copyright (C) 2008, The Perl Foundation.
# $Id: /mirror/trunk/languages/unlambda/config/makefiles/root.in 28688 2008-06-23T00:33:41.905243Z coke  $

# Makefile for languages/unlambda

# configuration settings
BUILD_DIR       = @build_dir@

# Set up commands
PERL            = @perl@
RM_F            = @rm_f@
RECONFIGURE     = $(PERL) @build_dir@/tools/dev/reconfigure.pl
#CONDITIONED_LINE(darwin):
#CONDITIONED_LINE(darwin):# MACOSX_DEPLOYMENT_TARGET must be defined for OS X compilation/linking
#CONDITIONED_LINE(darwin):export MACOSX_DEPLOYMENT_TARGET := @osx_version@

# The default target
default: build

help :
	@echo ""
	@echo "Following targets are available for the user:"
	@echo ""
	@echo "  build:             does nothing."
	@echo "                     This is the default target."
	@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=unlambda

# Compilation:
build:
	@echo "nothing to do"

# cleaning up

clean: 
	@echo "nothing to do"

realclean: clean
	$(RM_F) Makefile

# testing
test: build
	$(PERL) t/harness
