{Makefile Error} “commands commence before first target. Stop.”

后端 未结 2 540
花落未央
花落未央 2020-12-12 03:59

I\'m trying to produce a makefile for use with my Raspberry Pi, the intention is to use the Pi\'s camera board to detect faces with opencv. However I keep facing myself wit

2条回答
  •  情歌与酒
    2020-12-12 04:57

    I had the same issue ...

    I already have rules for check, test and build... but wanted to string them together...

    Easy I thought...

    .DEFAULT_GOAL := fullcheck
        $(MAKE) check
        $(MAKE) test
        $(MAKE) build
    

    But no commands commence before first target. Stop.

    What I had omitted was, the name of the rule. It should be like this.

    .DEFAULT_GOAL := fullcheck
    fullcheck:
        $(MAKE) check
        $(MAKE) test
        $(MAKE) build
    

提交回复
热议问题