24 lines
617 B
Makefile
24 lines
617 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
|
||
|
cp -Rv $(srcdir)/* $(DESTDIR)/lib/firmware
|
||
|
|
||
|
$(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)
|