[PATCH] RHEL6/Makefile target shorthand2xccdf requires target shorthand-guide to be complete

Kenneth Stailey kstailey.lists at gmail.com
Fri Aug 31 18:53:55 UTC 2012


To test:

cd RHEL6
make clean
make shorthand2xccdf

This will fail because the required prerequisite tasks were not run.

Fix:

--- a/RHEL6/Makefile
+++ b/RHEL6/Makefile
@@ -11,7 +11,7 @@ shorthand-guide:
        xsltproc -o $(OUT)/rhel6-shorthand.xml $(IN)/guide.xslt $(IN)/guide.xml
        xmllint --format --output $(OUT)/rhel6-shorthand.xml
$(OUT)/rhel6-shorthand.xml

-shorthand2xccdf:
+shorthand2xccdf: shorthand-guide
        xsltproc -o $(OUT)/rhel6-xccdf-noprofiles.xml
$(TRANS)/shorthand2xccdf.xslt $(OUT)/rhel6-shorthand.xml
        xsltproc -stringparam profile "allprofiles" -o
$(OUT)/rhel6-xccdf.xml $(TRANS)/xccdf-addprofiles.xslt
$(OUT)/rhel6-xccdf-noprofiles.xml
        xsltproc -stringparam fixes "../$(IN)/fixes/bash-ks.xml" -o
$(OUT)/rhel6-xccdf.xml $(TRANS)/xccdf-addfixes.xslt
$(OUT)/rhel6-xccdf.xml


More information about the scap-security-guide mailing list