aostruszka / nonrec-make

Non-recursive make template for GNU make

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in the config-default.mk file

pilpil-qphy opened this issue · comments

The below code from "config-default.mk" file is buggy.

ifeq ($(origin $(CC)),default)
CC := gcc
endif

It should rather be (no $( ) around the CC), like as,

ifeq ($(origin CC),default)
CC := gcc
endif

Thank you! Fixed with 15efeac
Don't know why I used it that way - in the same file at bottom I used 'origin' correctly for RANLIB, must have been tired that day :-).