build: Rebuild when Portage config changes

The `host-tools` and `build` targets will now be rebuilt automatically
when the respective Portage configuration changes.
gentoo
Dustin 2023-03-12 10:24:06 -05:00
parent 274c592f5d
commit a5a642cb9a
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ prepare: $(O)/.prepared
$(O)/.host-tools: \
build-host-tools.sh \
host-tools.packages \
$(shell find portage/config/host -type f) \
$(O)/.prepared
./build-host-tools.sh
touch $(O)/.host-tools
@ -27,6 +28,7 @@ $(O)/.built: \
build.sh \
build.packages \
install.packages \
$(shell find portage/config/target -type f) \
$(O)/.host-tools \
$(O)/.prepared
./build.sh