+- Run python and shell directly to interpret scripts so policy
+ sources need not be executable.
+- Add desc tag XML to booleans and tunables, and add summary
+ to param XML tag, to make future translations possible.
- Remove unused lvm_vg_t.
- Many interface renames to improve naming consistency.
- Merge xdm into xserver.
XMLLINT := $(BINDIR)/xmllint
SECHECK := $(BINDIR)/sechecker
-CFLAGS := -Wall
+# interpreters and aux tools
+AWK ?= gawk
+GREP ?= egrep
+M4 ?= m4
+PYTHON ?= python
+SED ?= sed
+SH ?= sh
+
+CFLAGS += -Wall
# policy source layout
POLDIR := policy
# policy building support tools
SUPPORT := support
-GENXML := $(SUPPORT)/segenxml.py
-GENDOC := $(SUPPORT)/sedoctool.py
-GENPERM := $(SUPPORT)/genclassperms.py
+GENXML := $(PYTHON) $(SUPPORT)/segenxml.py
+GENDOC := $(PYTHON) $(SUPPORT)/sedoctool.py
+GENPERM := $(PYTHON) $(SUPPORT)/genclassperms.py
FCSORT := $(SUPPORT)/fc_sort
-SETTUN := $(SUPPORT)/set_tunables
+SETTUN := $(SH) $(SUPPORT)/set_tunables
# documentation paths
DOCS = doc
$(MOD_CONF) $(BOOLEANS): $(POLXML)
@echo "Updating $(MOD_CONF) and $(BOOLEANS)"
- $(verbose) cd $(DOCS) && ../$(GENDOC) -t ../$(BOOLEANS) -m ../$(MOD_CONF) -x ../$(POLXML)
+ $(verbose) $(GENDOC) -t $(BOOLEANS) -m $(MOD_CONF) -x $(POLXML)
########################################
#
html tmp/html: $(POLXML)
@echo "Building html interface reference documentation in $(HTMLDIR)"
@mkdir -p $(HTMLDIR)
- $(verbose) cd $(DOCS) && ../$(GENDOC) -d ../$(HTMLDIR) -T ../$(DOCTEMPLATE) -x ../$(POLXML)
+ $(verbose) $(GENDOC) -d $(HTMLDIR) -T $(DOCTEMPLATE) -x $(POLXML)
$(verbose) cp $(DOCTEMPLATE)/*.css $(HTMLDIR)
@touch tmp/html