“multiple target patterns” Makefile error

后端 未结 6 1800
有刺的猬
有刺的猬 2020-11-27 15:07

My makefile fails with error:

Makefile:34: *** multiple target patterns.  Stop.

What does it really mean, how can I fix this?

(GNU

6条回答
  •  感情败类
    2020-11-27 15:55

    I had it on the Makefile

    MAPS+=reverse/db.901:550:2001.ip6.arpa 
    lastserial:  ${MAPS}
        ./updateser ${MAPS}
    

    It's because of the : in the file name. I solved this with

                          -------- notice
                         /    /
                        v    v
    MAPS+=reverse/db.901\:550\:2001.ip6.arpa
    lastserial:  ${MAPS}
        ./updateser ${MAPS}
    

提交回复
热议问题