src/firmware/Makefile
Nathan Fisher 10afb1cd9b Fix libcap build on some architectures; Fix some issues with shell startup
scripts; Improve firmware Makefile; Fix messages in hhl.staticlib.mk
2022-09-01 09:03:41 -04:00

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)