menufw/menusuites/foldersuite/group/copyheaderfile.flm
author Juha Ristolainen <juha.ristolainen@futurice.com>
Sat, 20 Mar 2010 17:37:15 +0100
changeset 17 eb51821c0aca
parent 0 f72a12da539e
permissions -rw-r--r--
Fix for bug 1972: Removed compilation of dummy DLL and changed targettype to NONE

# copyheaderfile.flm
#
# Copyright (c) 2008-2009 Nokia Ltd. All rights reserved.
#
# Header file exporting Function Like Makefile (FLM)
# The file destinations  relative to EPOCROOT

## Inputs
# SRCFILE

CLEANTARGETS:=
RELEASEABLES:=
CREATABLEPATHS:=

# Check if all the inputs are present
$(if $(SRCFILE),,$(error Must define SRCFILE))

ifeq ($(PLATFORM),WINSCW)
TRGDIR:=$(EPOCROOT)/epoc32/release/winscw/$(CFG)/z/resource/apps
TARGET:=$(TRGDIR)/$(SRCFILE)
RSGFILE:=$(EPOCROOT)/epoc32/include/$(SRCFILE)
CREATABLEPATHS:=$(TRGDIR)
RELEASEABLES:=$(TARGET)
CLEANTARGETS:=$(RELEASEABLES)

define copyheaderfile
$(GUARD)_$(CFG):=1
ALL:: $(TARGET)

$(TARGET) : $(RSGFILE)
	$(call startrule,copyheaderfile,FORCESUCCESS) \
	$(GNUCP) $$< $$@ && \
	$(GNUCHMOD) a+rw "$$@" \
	$(call endrule,copyheaderfile)
endef

ifeq ($($(GUARD)_$(CFG)),)
$(eval -$(copyheaderfile))
$(eval $(call makepath,$(CREATABLEPATHS)))
$(eval $(call whatmacro,$(RELEASEABLES),WHATMAKEFILE))
$(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS)))
endif

endif