Make .lid and .lid.xz make targets patterns
diff mbox series

Message ID 20190715020205.8925-1-stewart@linux.ibm.com
State New
Headers show
Series
  • Make .lid and .lid.xz make targets patterns
Related show

Checks

Context Check Description
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (4db38a36b31045f0a116d388ddeac850b38c8680)

Commit Message

Stewart Smith July 15, 2019, 2:02 a.m. UTC
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
---
 Makefile.main | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/Makefile.main b/Makefile.main
index fac6e4487460..2a8b48986957 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -258,10 +258,10 @@  ALL_OBJS = $(OBJS) version.o
 ALL_OBJS_1 = $(TARGET).tmp.a asm/dummy_map.o
 ALL_OBJS_2 = $(TARGET).tmp.a asm/real_map.o
 
-$(TARGET).lid.xz: $(TARGET).lid
+%.lid.xz: %.lid
 	$(call Q,XZ, cat $^ | xz -9 -C crc32 > $@, $@)
 
-$(TARGET).lid: $(TARGET).elf
+%.lid: %.elf
 	$(call Q,OBJCOPY, $(OBJCOPY) -O binary -S $^ $@, $@)
 
 $(TARGET).lid.stb: $(TARGET).lid libstb/create-container