A collection of makefiles "libraries", to use in (almost) all your projects.
Go to file
Glenn Y. Rolland d5627404e1 Improve graphviz 2021-07-23 16:07:42 +02:00
Makefile Initial import 2021-07-15 00:38:16 +02:00
README.md Improve usage documentation 2021-07-23 15:46:18 +02:00
graphviz.mk Improve graphviz 2021-07-23 16:07:42 +02:00
mocodo.mk Fill content for graphviz, mocodo & plantuml 2021-07-23 15:39:44 +02:00
mypaint.mk Add mypaint file 2021-07-23 15:39:52 +02:00
plantuml.mk Fill content for graphviz, mocodo & plantuml 2021-07-23 15:39:44 +02:00


Makefiles Forever

A drop-in collection of makefiles libraries for your projects


  • plantuml.makefile — Build plantuml diagrams
  • dot.mk — Build graphviz graph diagrams
  • mocodo.mk — Build mocodo entity-relation and logical diagrams


Add this repository as a GIT submodule of your project

$ git submodule add https://github.com/glenux/makefiles-forever .makefiles

Include needed features in the end of your makefile

# [...]

-include .makefiles/featureA.mk
-include .makefiles/featureB.mk  

Declare API variables (ex: *_SRC_DIR, *_DEST_DIR) for each module

# Configuration for featureA from Makefiles Forever

# Configuration for featureB from Makefiles Forever

Use pre-defined targets as dependencies of your targets:

build: featureA-build
build: featureB-build

clean: featureA-clean
clean: featureB-clean

Feature files usually define more targets than just build and clean, and you can use those too!

Good practices for coding .mk files

  • Keep task parallelism in mind
    • Make all targets available from root makefile
    • Do not descend in subdirectories