bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #42930] Order-only prerequisite being parsed as normal prerequisite


From: anonymous
Subject: [bug #42930] Order-only prerequisite being parsed as normal prerequisite when using pattern matching rule
Date: Wed, 06 Aug 2014 18:47:10 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]