diff options
-rw-r--r-- | arch/s390/scripts/Makefile.chkbss | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/s390/scripts/Makefile.chkbss b/arch/s390/scripts/Makefile.chkbss index d92f2d94a5d9..fb0a11bd520c 100644 --- a/arch/s390/scripts/Makefile.chkbss +++ b/arch/s390/scripts/Makefile.chkbss @@ -8,7 +8,12 @@ define cmd_chkbss touch $@; endef -$(obj)/built-in.a: $(patsubst %, $(obj)/%.chkbss, $(chkbss)) +chkbss-target ?= $(obj)/built-in.a +ifneq (,$(findstring /,$(chkbss))) +$(chkbss-target): $(patsubst %, %.chkbss, $(chkbss)) +else +$(chkbss-target): $(patsubst %, $(obj)/%.chkbss, $(chkbss)) +endif %.o.chkbss: %.o $(call cmd,chkbss) |