Skip to content

Replace GNUMake with a go build script #4145

Description

@an0rak-dev

Description

Hi,

One of the best usage of GNUMake is when you use it with the syntax target: requirements and with target being the output file like so :

main.o: main.c
   # ...

because Make will decide given the stat of the target if it needs build or not.

Since the Makefile of this project does not use this kind of feature, GNUMake seems like less of the perfect build tool for this project.

As a gamedev, one of my main machine is a Windows system, and it can be difficult to have a Makefile that is completely OS agnostic. Even GOOS=$(...) go generate... doesn't work on Windows, so if you want Windows support (outside WSL, natively for Windows), you'll need to enclose everything around ifeq ($(OS),Windows_NT).

What I'm suggesting here is to remove the need for GNUMake by a completly rewriting its rules into a tools\make.go which will simply use go code to perform the tasks.

I'm currently working on this on my own fork, but I can send a PR if you thing it's worth it inside the upstream 😄

Let me know !

(PS: Sorry to have open an Issue for this, but I find it more polite to ask first before submitting the PR).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions