https://github.com/mathyscogne/make_my_file-42
My Makefile Generator for 42 Projects - An automated tool that detects C project structures, creates necessary files, and provides easy Makefile generation
https://github.com/mathyscogne/make_my_file-42
42 generator-makefile
Last synced: 8 months ago
JSON representation
My Makefile Generator for 42 Projects - An automated tool that detects C project structures, creates necessary files, and provides easy Makefile generation
- Host: GitHub
- URL: https://github.com/mathyscogne/make_my_file-42
- Owner: MathysCogne
- License: mit
- Created: 2024-10-22T17:38:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T08:21:16.000Z (over 1 year ago)
- Last Synced: 2024-11-05T09:18:36.433Z (over 1 year ago)
- Topics: 42, generator-makefile
- Language: C
- Homepage:
- Size: 846 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Make My File
### ⚠️ This project is in beta testing.
### Please report any bugs you find on Discord (@mrmilkshakes) or GitHub!
**Make My File** is a fully automated Makefile generator for C projects, optimized for 42 school.
Run the executable in your project directory and follow the prompts in the console GUI.
## Features
- Auto-detect source files, headers and bonus files, including in subdirectories.
- Detect C project structure and Create project structure automatically if not present, including:
- main.c, name_app.c, and name_app.h
- Directories: include/ and src/
- A corresponding Makefile
- A .gitignore file for c project
- Link against the `libft` library (42).
- Include and auto-download `MiniLibX` library (42).
- Create object directories and dependency files.
## Disclaimer
While **Make My File** automates Makefile generation, knowing how to create one manually is essential, especially during 42 school pool sessions.
## Installation
1. Run the installer script and follow instructions: (Note: Script work on Linux and macOS.)
```bash
bash -c "$(curl -L https://github.com/MathysCogne/Make_My_File-42/releases/download/1.2.6/install_makemyfile.sh)"
```
2. To create a Makefile, navigate to the root of your project and run:
```bash
makemyfile
```
Tip: If you don’t have a project structure yet (meaning there are no .c files in the directory), the app will offer to create one for you. It's a great way to save time if you want to get started quickly!
3. Follow the on-screen instructions.

## Contributing
Contributions are welcome! Feel free to submit a pull request or open an issue for suggestions.