0
votes

This is the code snippet where, on the first like, make says separator not found

.if !empty(_MAKEOBJDIRPREFIX)

.error MAKEOBJDIRPREFIX can only be set in environment, not as a global\

        (in make.conf(5)) or command-line variable.

.endif

All lines are left aligned. If I place a tab \t before the .if, which is a suggested correction for such errors, I get the following message

commands commence before first target. Stop.

What might be the bug? Should I change anything else in the make file? Thank You!

1
What is your make version? Does it have if? Most of what I'm aware of only have ifeq, ifneq and ifdef. - keltar

1 Answers

0
votes

The syntax above looks like it is for BSD make. The error message suggests you're using GNU make; this syntax will not work with GNU make and you cannot use that makefile with GNU make.