An Nx plugin to integrate Make/Makefile tasks into the Nx dependency graph.
This repository contains the source code for the nx-make plugin, which enables seamless integration of Make-based build systems with Nx workspaces.
- ๐ Automatically detects
Makefiles in your workspace - ๐ Integrates Make targets into the Nx project graph
- โก Run Make targets using Nx executors
- ๐ Leverage Nx caching and dependency management with your Make tasks
- ๐ฏ Simple configuration and setup
For existing C/Make projects, use the installation script:
curl -fsSL https://raw.githubusercontent.com/ZackDeRose/nx-make/main/install.sh | bashThis will:
- Check for Node.js and offer to install it
- Add Nx to your project
- Install @zackderose/nx-make
- Configure nx.json
- Verify gcc/clang availability
npm install -D @zackderose/nx-makepnpm add -D @zackderose/nx-makeyarn add -D @zackderose/nx-make- Add the plugin to your
nx.json:
{
"plugins": [
{
"plugin": "nx-make"
}
]
}-
Create a
Makefilein any project directory -
Run
nx show project <your-project>to see discovered Make targets
For complete documentation, see the plugin README.
nx-make/
โโโ packages/
โ โโโ nx-make/ # The nx-make plugin source code
โ โโโ example-project/ # Example project demonstrating the plugin
โโโ nx.json # Nx workspace configuration
โโโ README.md # This file
nx build nx-makeThe example-project demonstrates the plugin in action:
nx build example-project
nx test example-projectThe plugin is configured for publishing to npm:
nx releaseContributions are welcome! Please open an issue or submit a pull request.
MIT
Zack DeRose [email protected]