10afb1cd9b
scripts; Improve firmware Makefile; Fix messages in hhl.staticlib.mk
24 lines
622 B
Makefile
24 lines
622 B
Makefile
# Makefile - hhl - /usr/src/world/linux-firmware
|
|
# Copyright 2022 Nathan Fisher <nfisher.sr@gmail.com>
|
|
#
|
|
distname = linux-firmware
|
|
default_goal = install_firmware
|
|
include world.mk
|
|
objdir = $(srcdir)
|
|
|
|
install_firmware: $(objdir)/.installed
|
|
|
|
$(objdir)/.installed: $(srcdir)/.dirstamp | $(DESTDIR)/lib/firmware
|
|
$(MAKE) DESTDIR=$(DESTDIR) -C $(srcdir) install
|
|
|
|
$(DESTDIR)/lib/firmware:
|
|
install -d $@
|
|
|
|
$(srcdir)/.dirstamp: $(distlocal)
|
|
$(info $(grn)=== Extracting $(distlocal) ===$(reset))
|
|
tar -xf $(distlocal) -C $(basedir)/build/src-world-$(arch)
|
|
touch $@
|
|
|
|
$(distlocal):
|
|
$(MAKE) -C ../distfiles $(distfile)
|