URL:
  <http://savannah.gnu.org/bugs/?42930>

                 Summary: Order-only prerequisite being parsed as normal
prerequisite when using pattern matching rule
                 Project: make
            Submitted by: None
            Submitted on: Wed 06 Aug 2014 06:47:08 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.80
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

When using a % wildcard to match file targets, the order-only rules do not
seem to be parsed properly.  The following snippet can demonstrate the issue:
<code>
OBJECT_DIR=Output

${OBJECT_DIR}/RADSTONE/:
        mkdir -p ${OBJECT_DIR}/RADSTONE

${OBJECT_DIR}/RADSTONE/%.d: test | ${OBJECT_DIR}/ ${OBJECT_DIR}/RADSTONE/
        $(warning Test 1: $^ | $|)touch $@

${OBJECT_DIR}/RADSTONE/test_2.d: test | ${OBJECT_DIR}/
${OBJECT_DIR}/RADSTONE/
        $(warning Test 2: $^ | $|)touch $@
</code>
Issueing:
make -d Output/RADSTONE/test_1.d

results in following output:
Makefile:219: Test 1: Output/ Output/RADSTONE/ | 

Issueing:
make -d Output/RADSTONE/test_2.d

results in following output:
Makefile:222: Test 2:  | Output/ Output/RADSTONE/ 





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42930>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to