Skip to content

Makefile syntax errors on OpenBSD #47

@morgant

Description

@morgant

After running ./configure, running make on OpenBSD (tested on 6.5) results in the following syntax errors:

*** Parse error in /home/linetrace/Projects/roundup: Need an operator in 'SHOCCO' (Makefile:53)
*** Parse error: Need an operator in 'endif' (Makefile:55)
*** Parse error: Need an operator in 'RONN' (Makefile:58)
*** Parse error: Need an operator in 'else' (Makefile:60)
*** Parse error: Need an operator in 'endif' (Makefile:62)
*** Parse error: Need an operator in 'RONN' (Makefile:67)
*** Parse error: Need an operator in 'else' (Makefile:69)
*** Parse error: Need an operator in 'endif' (Makefile:73)

This is because, in OpenBSD's make (per the man page:

Makefile inclusion, conditional structures and for loops reminiscent of the C programming language are provided in make. All such structures are identified by a line beginning with a single dot (‘.’) character.

Adding the preceding dot (.) character to the conditional structures resolves the syntax errors. However, running make then fails with the following error (because GNU make's force targets don't seem to be supported by OpenBSD's make):

make: don't know how to make FORCE (prerequisite of: roundup)

Removing FORCE from roundup: roundup.sh FORCE resolves this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions