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 zack.derose@gmail.com