Problems with Makefile when switching from debian to freebsd (ifeq and endif)

Asked

Viewed 20 times

1

I am using netbeans to compile some programs in C/C++ it compiles the code remotely on a debian machine (GNU), everything works smoothly, but I tried to compile the same project on a freebsd that uses CLANG, I am having error:

make: "contrib/contrib/Makefile-Jenkins.mk" line 2: Missing dependency operator
make: "contrib/contrib/Makefile-Jenkins.mk" line 4: Need an operator

On line 2 I have the ifeq command and on line 4 endif at all sites I use ifeq and endif am having these mistakes.

This Makefile was I who made and UID_DIR_LIB variable is usually not even passed unless I compile the project by Jenkins.

ifeq ($(UID_DIR_LIB),)
    UID_DIR_LIB := .
endif

Does anyone know how to fix to work on both platforms?

  • 1

    ifeq is not POSIX, is a GNU-extension. You can install bmake to check your Makefile. Here is a good link.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.