mirror of
https://github.com/meizu-m86/kexec-tools-arm64
synced 2025-11-04 05:46:10 +08:00
Use automatic variables for prerequisites when copying man pages and include a makefile relative to $(srcdir). Signed-off-by: Tyler Hall <tylerwhall@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au>
30 lines
864 B
Makefile
30 lines
864 B
Makefile
#
|
|
# vmcore-dmesg (reading demsg from vmcore)
|
|
#
|
|
|
|
VMCORE_DMESG_SRCS:= vmcore-dmesg/vmcore-dmesg.c
|
|
|
|
VMCORE_DMESG_OBJS = $(call objify, $(VMCORE_DMESG_SRCS))
|
|
VMCORE_DMESG_DEPS = $(call depify, $(VMCORE_DMESG_OBJS))
|
|
|
|
VMCORE_DMESG = $(SBINDIR)/vmcore-dmesg
|
|
VMCORE_DMESG_MANPAGE = $(MANDIR)/man8/vmcore-dmesg.8
|
|
|
|
dist += vmcore-dmesg/Makefile $(VMCORE_DMESG_SRCS) vmcore-dmesg/vmcore-dmesg.8
|
|
clean += $(VMCORE_DMESG_OBJS) $(VMCORE_DMESG_DEPS) $(VMCORE_DMESG) $(VMCORE_DMESG_MANPAGE)
|
|
|
|
-include $(VMCORE_DMESG_DEPS)
|
|
|
|
$(VMCORE_DMESG): $(VMCORE_DMESG_OBJS)
|
|
@$(MKDIR) -p $(@D)
|
|
$(LINK.o) -o $@ $^ $(CFLAGS)
|
|
|
|
$(VMCORE_DMESG_MANPAGE): vmcore-dmesg/vmcore-dmesg.8
|
|
$(MKDIR) -p $(MANDIR)/man8
|
|
cp $^ $(VMCORE_DMESG_MANPAGE)
|
|
echo::
|
|
@echo "VMCORE_DMESG_SRCS $(VMCORE_DMESG_SRCS)"
|
|
@echo "VMCORE_DMESG_DEPS $(VMCORE_DMESG_DEPS)"
|
|
@echo "VMCORE_DMESG_OBJS $(VMCORE_DMESG_OBJS)"
|
|
|