summaryrefslogtreecommitdiffstats
path: root/solenv/gbuild/Pagein.mk
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-04-05 17:27:22 +0200
committerDavid Tardon <dtardon@redhat.com>2013-04-06 13:33:32 +0200
commit5c021048638ce29a2e4c848f725e4a7447f8522f (patch)
treee9415537d5ca62876e1d9e77b6099926335cb7c7 /solenv/gbuild/Pagein.mk
parentget python3 building with gcc on aix (diff)
downloadcore-5c021048638ce29a2e4c848f725e4a7447f8522f.tar.gz
core-5c021048638ce29a2e4c848f725e4a7447f8522f.zip
provide an easy way to depend on makefile from gbuild classes
$(lastword $(MAKEFILE_LIST)) is not what is expected if the makefile includes other makefile as the first step (as some do). See UnpackedTarball.mk, where I already tried to workaround the problem. Change-Id: Ib713a698f52ba16f46fbbc4c50b43edd69c9a472
Diffstat (limited to 'solenv/gbuild/Pagein.mk')
-rw-r--r--solenv/gbuild/Pagein.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gbuild/Pagein.mk b/solenv/gbuild/Pagein.mk
index 1fe74c0ee5d2..10ba33ead22b 100644
--- a/solenv/gbuild/Pagein.mk
+++ b/solenv/gbuild/Pagein.mk
@@ -56,7 +56,7 @@ $(call gb_Pagein_get_target,%) :
define gb_Pagein_Pagein
$(call gb_Pagein_get_target,$(1)) : OBJECTS :=
-$(call gb_Pagein_get_target,$(1)) : $(realpath $(lastword $(MAKEFILE_LIST)))
+$(call gb_Pagein_get_target,$(1)) : $(gb_Module_CURRENTMAKEFILE)
$$(eval $$(call gb_Module_register_target,$(call gb_Pagein_get_outdir_target,$(1)),$(call gb_Pagein_get_clean_target,$(1))))
$(call gb_Helper_make_userfriendly_targets,$(1),Pagein,$(call gb_Pagein_get_outdir_target,$(1)))
$(call gb_Deliver_add_deliverable,$(call gb_Pagein_get_outdir_target,$(1)),$(call gb_Pagein_get_target,$(1)),$(1))