# ----------------------------------------------------
# Copyright (C) 1997, Ericsson Telecommunications
# Author: Lars Thorsen
# ----------------------------------------------------

AUTOCONF := $(ERL_TOP)/erts/autoconf
TARGET := $(shell $(AUTOCONF)/config.guess)
include $(ERL_TOP)/internal_tools/make/$(TARGET)/otp.mk

# ----------------------------------------------------
# Application version
# ----------------------------------------------------
include ../vsn.mk
VSN=$(EVA_VSN)

# ----------------------------------------------------
# Release directory specification
# ----------------------------------------------------
RELEASE_PATH= ../../release/$(TARGET)
RELSYSDIR = $(RELEASE_PATH)/lib/eva-$(VSN)

# ----------------------------------------------------
# Common macros
# ----------------------------------------------------
EXAMPLE_FILES = README BOARD-MIB.mib board_test.erl simple_adaptation.erl
#	oms/src/oms.erl oms/ebin/oms.app


# ----------------------------------------------------
# Targets
# ----------------------------------------------------

debug opt:

clean:

docs:

# ----------------------------------------------------
# Release Target
# ---------------------------------------------------- 
include $(ERL_TOP)/internal_tools/make/otp_release_targets.mk

release_spec: opt
	$(INSTALL_DIR) $(RELSYSDIR)/example
	$(INSTALL_DIR) $(RELSYSDIR)/example/oms
	$(INSTALL_DIR) $(RELSYSDIR)/example/oms/src
	$(INSTALL_DIR) $(RELSYSDIR)/example/oms/ebin
	$(INSTALL_DATA) $(EXAMPLE_FILES) $(RELSYSDIR)/example
	$(INSTALL_DATA) oms/src/oms.erl $(RELSYSDIR)/example/oms/src/oms.erl
	$(INSTALL_DATA) oms/ebin/oms.app $(RELSYSDIR)/example/oms/ebin/oms.app


release_docs_spec:

release_src_spec: release_spec
	$(INSTALL_DATA) Makefile $(RELSYSDIR)/example
