Skip to content

Commit

Permalink
Makefile prepare target improvement
Browse files Browse the repository at this point in the history
Added --noscriptlet option to pacman call:
only refresh of header files is needed, install script can be skipped to save
to save time in case of some packages (specifically: glibc that runs locale-gen after install)
  • Loading branch information
kmicki committed Nov 19, 2023
1 parent dc8fde9 commit 03f5722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ ifndef NOPREPARE
# Second expansion of order only dependency is so that this targets will not run in parallel
$(DEPENDCHECKFILES) :: $(RUNDEPS) | $$(call removefrom,$$(call getpos,$$@,$(DEPENDCHECKFILES)),$(DEPENDCHECKFILES))
@echo -e "Missing $@. Reinstalling \e[1m$(call getmatch,$@,$(DEPENDCHECKFILES),$(DEPENDENCIES))\e[0m..."
sudo pacman -S --noconfirm $(call getmatch,$@,$(DEPENDCHECKFILES),$(DEPENDENCIES)) &>/dev/null
sudo pacman -S --noconfirm --noscriptlet $(call getmatch,$@,$(DEPENDCHECKFILES),$(DEPENDENCIES)) &>/dev/null

endif # ifndef NOPREPARE

Expand Down

0 comments on commit 03f5722

Please sign in to comment.