{"id":27425866,"url":"https://github.com/mstanimirovic/make-template","last_synced_at":"2026-05-19T05:41:18.327Z","repository":{"id":175283601,"uuid":"653627855","full_name":"mstanimirovic/make-template","owner":"mstanimirovic","description":"Custom Makefile build system for C and C++ projects, enhancing development efficiency and flexibility.","archived":false,"fork":false,"pushed_at":"2023-06-18T13:03:52.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T09:29:19.894Z","etag":null,"topics":["build-system","c","cpp","make","makefile"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mstanimirovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-06-14T12:16:15.000Z","updated_at":"2025-03-06T16:58:27.000Z","dependencies_parsed_at":"2023-12-16T16:55:30.838Z","dependency_job_id":null,"html_url":"https://github.com/mstanimirovic/make-template","commit_stats":null,"previous_names":["m1ad3n/make-template","mstanimirovic/make-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstanimirovic%2Fmake-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstanimirovic%2Fmake-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstanimirovic%2Fmake-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstanimirovic%2Fmake-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mstanimirovic","download_url":"https://codeload.github.com/mstanimirovic/make-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248880905,"owners_count":21176754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["build-system","c","cpp","make","makefile"],"created_at":"2025-04-14T12:29:21.740Z","updated_at":"2025-10-11T10:04:12.010Z","avatar_url":"https://github.com/mstanimirovic.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003eCustom Makefile Build System for C and C++\u003c/h2\u003e\n\n## Table of Contents\n\n- [Description](#description)\n- [Installation](#installation)\n- [Dependencies](#dependencies)\n- [Usage](#usage)\n- [Library](#library)\n- [Install Function](#install-function)\n- [Commands](#commands)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Description\n\nThis project provides a custom Makefile build system for C and C++ projects. It offers developers a flexible and efficient solution for compiling and managing their source code. The build system supports various commands that facilitate different stages of the development process, including building the project, generating a release version, and cleaning the build folders.\n\n## Installation\n\nTo use this project, follow the steps below:\n\n1. Clone the repository:\n\n```shell\ngit clone https://github.com/m1ad3n/make-template.git\n```\n\n2. Change to the project's directory:\n\n```shell\ncd make-template\n```\n\n1. Clone only the Makefile\n\n```shell\ncurl https://raw.githubusercontent.com/m1ad3n/make-template/master/Makefile \u003e Makefile\n```\n\n## Dependencies\n\nBefore using this project, make sure you have the following dependencies installed:\n\n- **`gcc`**: The GNU Compiler Collection, required for compiling the C and C++ source code.\n- **`make`**: A build automation tool used to compile and manage the project using the Makefile.\n- **`findutils`**: A collection of utilities used to search for files and directories. It is often pre-installed on Unix-like systems.\n\nMake sure you have these dependencies installed on your system before proceeding with the usage of this project.\n\n\n## Usage\n\nTo build and run the project, make sure you have the necessary dependencies installed. Then, follow the steps below:\n\n\n1. Open a terminal and navigate to the project's directory.\n\n2. Execute the **`make`** command to build the project:\n\n```shell\nmake\n```\n\n3. Execute the generated executable:\n\n```shell\n./target/debug/project\n```\n\nTo build the release version of the project, execute the following command:\n\n```shell\nmake release\n```\n\n4. Execute the generated release executable:\n\n```shell\n./target/release/project\n```\n\nMake sure to replace **`project`** with the actual name of the directory\n\n## Library\nTo build shared library from your source code run:\n\n```shell\nmake library\n```\n\nThis will generate `target/lib/lib{project}.so`\n- {project}: Name of the project directory\n\n## Install Function\nTo install release binaries, header files and shared library run:\n\n```shell\nmake install\n```\n\n## Commands\n\nThe following commands are available for the Makefile build system:\n\n- `make`: Builds the project.\n- `make release`: Builds the release version of the project.\n- `make library`: Compiles object files into one single shared library\n- `make install`: Installs release binary, header files and shared librarys\n- `make clean`: Cleans the target folder, removing all generated object files and executables.\n\nAdditionally, the Makefile includes various forms of clean functions such as:\n- `make clean-rel`: Delete only the **release** folder\n- `make clean-deb`: Delete only the **debug** folder\n- `make clean-lib`: Delete only the **lib** folder\n\nFeel free to modify the Makefile to suit your specific project needs.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the project's GitHub repository.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE). You are free to modify and distribute this project as per the license terms.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstanimirovic%2Fmake-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmstanimirovic%2Fmake-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstanimirovic%2Fmake-template/lists"}