boring-makefile

An uninteresting makefile. (by JonChesterfield)

Boring-makefile Alternatives

Similar projects and alternatives to boring-makefile

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better boring-makefile alternative or higher similarity.

boring-makefile reviews and mentions

Posts with mentions or reviews of boring-makefile. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-08.
  • How to Structure C Projects: These Best Practices Worked for Me
    3 projects | news.ycombinator.com | 8 Mar 2024
    The tests look much like https://github.com/JonChesterfield/EvilUnit/blob/master/evil.... That's from the self tests for the test framework. It's closely modelled on catch2. Name is because I built the thing out of preprocessor macros to run on freestanding c89.

    The projects using code generation in that fashion are proprietary. There's a makefile at https://github.com/JonChesterfield/boring-makefile/blob/mast... set up to do the src/gen/obj codegen by default structure.

  • John Carmack on Functional Programming in C++ (2018)
    7 projects | news.ycombinator.com | 18 Feb 2023
    I've been coding like that since at least 2016[1]. The trick is to make adding code generators as easy as adding source code. Not a game engine in my case, though there's a CppCon talk from 2014 which makes a passing reference to using code generators with C++ instead of templates for one.

    Assume source is src/.c and compiled to obj/.o, then introduce a third directory called gen. Change the makefile rule to copy .c from src to gen, and compile from gen to obj. Then add a makefile rule that says gen/foo.c can be built from src/foo.c.py by calling python on the source and redirecting stout.

    That means a C source file can be turned into a python program that generates the same source by wrapping it in a string literal, calling print and renaming the source file. No build system change. Then change the python as you see fit to work around the limitations of C.

    Works really well for a solo developer. Repo using this scheme is ~100 generated files (mostly lua, some python) vs ~600 C files. Plus ~20 C++ and one D, just getting started with that language.

    [1] https://github.com/JonChesterfield/boring-makefile/blob/mast...

Stats

Basic boring-makefile repo stats
2
0
10.0
about 8 years ago

JonChesterfield/boring-makefile is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of boring-makefile is Makefile.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com