{"id":45830451,"url":"https://github.com/mozrin/makefiler","last_synced_at":"2026-02-26T22:01:34.324Z","repository":{"id":262198117,"uuid":"886497338","full_name":"mozrin/makefiler","owner":"mozrin","description":"Makefile Installation Framework - Language Independent","archived":false,"fork":false,"pushed_at":"2025-12-14T11:01:31.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-16T15:45:54.919Z","etag":null,"topics":["framework","makefile","makefile-template","makefiles-management"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mozrin.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-11T04:40:36.000Z","updated_at":"2025-12-14T10:50:14.000Z","dependencies_parsed_at":"2025-04-29T05:25:06.082Z","dependency_job_id":"893d2d16-4009-44e7-b7d8-e8e8335687e9","html_url":"https://github.com/mozrin/makefiler","commit_stats":null,"previous_names":["mozrin/dynamic-makefiles","moztopia/dynamic-makefiles","mozrin/makefiler"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mozrin/makefiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozrin%2Fmakefiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozrin%2Fmakefiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozrin%2Fmakefiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozrin%2Fmakefiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozrin","download_url":"https://codeload.github.com/mozrin/makefiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozrin%2Fmakefiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29874460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:05:00.265Z","status":"ssl_error","status_checked_at":"2026-02-26T20:57:13.669Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framework","makefile","makefile-template","makefiles-management"],"created_at":"2026-02-26T22:01:07.764Z","updated_at":"2026-02-26T22:01:34.299Z","avatar_url":"https://github.com/mozrin.png","language":"Makefile","readme":"# Makefiler: Dynamic Makefile System\n\nThis project provides a dynamic Makefile system designed to organize and extend your build processes. Instead of a single monolithic Makefile, **Makefiler** allows you to define targets and logic in separate, modular `.mk` files, making your build system more maintainable and scalable.\n\n## Key Features\n\n- **Dynamic Target Loading:** Automatically discovers and includes targets defined in `.mk` files within the `makefiler/` directory. This modular approach keeps your build logic organized and easy to manage.\n- **Help Target (`make help`):** Provides a self-documenting system. Running `make help` will list all available targets and their descriptions, which are extracted directly from your `.mk` files.\n- **Target File Dumping (`make dump target=\u003ctarget\u003e`):** A utility for inspecting the contents of individual `.mk` target files, which is ideal for debugging or understanding the definition of a specific target.\n- **Optional Variable Overrides:** Customize variables used in your targets via an optional `Makefile.variables` file. This allows you to tailor the build process without modifying the core target definitions.\n- **Debug Mode:** Enable debug output by setting the `DEBUG` variable. This outputs extra debug information during make execution, which aids troubleshooting and helps you understand the Makefile’s behavior.\n\n## Installation Process\n\n1. **Clone Makefiler:**  \n   Clone the Makefiler repository into your local workspace.\n\n   ```bash\n   git clone https://github.com/yourusername/makefiler.git\n   ```\n\n2. **Copy the Required Files:**\n\n   - Copy the **main `Makefile`** from the Makefiler repository into the root of your project.\n   - Copy the **`makefiler/` folder** into your project’s root directory.\n\n   This setup installs the dynamic Makefiler system into your project, setting the stage for modular target definitions.\n\n## Usage\n\nOnce installed, follow these steps to use Makefiler in your project:\n\n1. **Define Targets in `.mk` Files:**  \n   Create or modify `.mk` files in the `makefiler/` directory. For example, you might have:\n\n   - `makefiler/build.mk`\n   - `makefiler/deploy.mk`\n   - `makefiler/test.mk`\n\n   In each `.mk` file, define your Makefile targets using the normal syntax. **Be sure to add a comment (starting with `# `) after each target definition to provide a short description** that will be used by the `help` target.\n\n   ```makefile\n   # makefiler/build.mk\n\n   build: # Compile the application.\n   \t@echo \"Building application...\"\n   \t# ... your build commands ...\n\n   build-docker: # Build a Docker image.\n   \t@echo \"Building Docker image...\"\n   \t# ... your docker build commands ...\n   ```\n\n2. **Run Targets:**  \n   From your project’s root directory, execute make followed by the target name:\n\n   ```bash\n   make build        # Runs the 'build' target\n   make build-docker # Runs the 'build-docker' target\n   ```\n\n3. **Get Help (`make help`):**  \n   To see a formatted list of all available targets and their descriptions, simply run:\n\n   ```bash\n   make help\n   ```\n\n   The help system will automatically pick up descriptions from the comments in your `.mk` files.\n\n4. **Dump a Target File (`make dump target=\u003ctarget\u003e`):**  \n   If you need to inspect the contents of a specific `.mk` file (for example, to debug or learn its setup), you can run:\n\n   ```bash\n   make dump target=build\n   ```\n\n   This command will display the contents of `makefiler/build.mk` in your console.\n\n## Customizing Variables with `Makefile.variables` (Optional)\n\nYou can override or customize variables used within your `.mk` files by creating a `Makefile.variables` file in the root directory of your project. This step is optional but provides an extra layer of configuration.\n\n1. **Create `Makefile.variables`:**  \n   In the same directory as the main `Makefile`, create a file named `Makefile.variables`.\n\n2. **Define Variables:**  \n   Add any variables you want to configure. These variables will be available within your `.mk` files. For example:\n\n   ```makefile\n   # Makefile.variables\n\n   BACKEND_BUILD_COMMAND = docker-compose -f docker-compose.backend.yml build\n   DEPLOY_SERVER_ADDRESS = my-production-server.example.com\n   ```\n\n3. **Usage in `.mk` Files:**  \n   Your target definitions can now use these variables. For instance:\n\n   ```makefile\n   # makefiler/build.mk\n\n   build-backend: # Build the backend application using the custom command.\n   \t@echo \"Building backend using: $(BACKEND_BUILD_COMMAND)\"\n   \t@$(BACKEND_BUILD_COMMAND)\n\n   deploy-backend: # Deploy backend to the custom server address.\n   \t@echo \"Deploying backend to: $(DEPLOY_SERVER_ADDRESS)\"\n   \t# ... deployment commands using $(DEPLOY_SERVER_ADDRESS) ...\n   ```\n\nWhen `Makefile.variables` exists, its variables are automatically included, allowing you to easily customize and reuse build commands without modifying core target definitions.\n\n## Debug Mode\n\nEnable debug output by setting the `DEBUG` variable to any non-blank value. This can be useful for tracing the execution of your targets or troubleshooting issues.\n\nFor example, to enable debug mode when viewing the help output:\n\n```bash\nDEBUG=1 make help\n```\n\nThis will print extra debug information (like discovered phony targets) during execution. You can also add additional `$(if $(DEBUG),$(info ...))` statements in your `.mk` files or the main `Makefile` to output variable values or execution traces.\n\n## Directory Structure\n\n- **`Makefile`**: The main dynamic Makefile (copied into your project's root).\n- **`Makefile.variables` (optional)**: File for overriding global user variables (in your project's root).\n- **`makefiler/`**: Directory containing `.mk` files that each define a set of related targets (copied into your project's root).\n\n## Contributing\n\nContributions to improve **Makefiler** are welcome! Please feel free to submit pull requests or open issues for bug reports, feature requests, or suggestions for improvement.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozrin%2Fmakefiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozrin%2Fmakefiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozrin%2Fmakefiler/lists"}