- Add a reload target to Modules.devel and change the load

target to only insert modules that were changed.
This commit is contained in:
Chris PeBenito 2006-11-13 03:36:13 +00:00
parent ed38ca9f3d
commit 59f8539306
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,5 @@
- Add a reload target to Modules.devel and change the load
target to only insert modules that were changed.
- Allow semanage to read from /root on strict non-MLS for - Allow semanage to read from /root on strict non-MLS for
local policy modules. local policy modules.
- Gentoo init script fixes for udev. - Gentoo init script fixes for udev.

View File

@ -133,7 +133,7 @@ define peruser-expansion
$(verbose) echo "')" >> $2 $(verbose) echo "')" >> $2
endef endef
.PHONY: clean all xml load .PHONY: clean all xml load reload
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .pp .SUFFIXES: .pp
# broken in make 3.81: # broken in make 3.81:
@ -154,9 +154,14 @@ xml: $(polxml)
# #
load: tmp/loaded load: tmp/loaded
tmp/loaded: $(all_packages)
@$(EINFO) "Loading $(NAME) modules: $(basename $(notdir $?))"
$(verbose) $(SEMODULE) $(foreach mod,$?,-i $(mod))
@mkdir -p tmp
@touch tmp/loaded
tmp/loaded reload: $(all_packages) reload: $(all_packages)
@$(EINFO) "Loading $(NAME) modules: $(basename $(notdir $(all_packages)))" @$(EINFO) "Loading $(NAME) modules: $(basename $(notdir $^))"
$(verbose) $(SEMODULE) $(foreach mod,$^,-i $(mod)) $(verbose) $(SEMODULE) $(foreach mod,$^,-i $(mod))
@mkdir -p tmp @mkdir -p tmp
@touch tmp/loaded @touch tmp/loaded