genMake
Disclaimer:
This is my first real Python project. I am not a Python developer, and the code is certainly not the cleanest. This project was developed according to my needs, and if you need more features I would be happy to integrate them if possible. I think it may be useful to others so I'll share it but without any guarantee.
Description
This project allows to generate a Makefile compatible with the rules of school 42. It also allows to update the name of the sources in a fully automated way. The MakeFile works on C and CPP.
Usage
genmake -h
usage: genmake [-h] [--version] [--remake]
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--remake Delete and reconstruct Makefile
Makefile
The Makefile will support the libftprintf and minilibx libraries (standard to 42). There is also a DEBUG rule as well as norm.
The Makefile will use GCC on MacOS and clang-9 on Linux
Usage of makefile
make
make bonus
make BUILD=debug
make BUILD=valgrind
make re
make clean
make fclean
make libft
make minilibx
make norm
If you use the Debug rule, the following parameters will be added during compilation :
-DDEBUG -ggdb -fsanitize=address -fno-omit-frame-pointer
The valgrind rule is the same as above, but without fsanitize
Installation
To install it just do :
pip3 install genmake
or on 42 iMac :
python3 -m pip install --user genmake
If the command is not available even after installation, please check that $HOME/.local/bin is in the PATH. If it is not the case you can add this to your .zshrc :
export PATH=$HOME/.local/bin:$PATH
or on 42 iMac MacOS :
export PATH=$HOME/Library/Python/3.7/bin:$PATH
Upgrade
To update, this command is enough:
pip3 install genmake -U
or on 42 iMac :
pip3 install --user --upgrade genmake
Known problems :
- The code is not clean
- Many parameters are hard-coded, it would be necessary to create a configuration file.
- You will tell me :D
Thanks to :
- Tart3mpion for special support
- tp0ns for joy and amelioration idea
- clbouche for joy and special skill in communication
- Ccommiss for nothing but i appreciate you
- EliasAachach special thanks to you best bro ❤️
Metadata
Release files for genmake 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genmake-1.1.6.tar.gz | 13.6 kB | Without provenance | Details for genmake-1.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genmake-1.1.6-py3-none-any.whl | Python 3 | none | any | Details for genmake-1.1.6-py3-none-any.whl |
Total release size: 26.4 kB
Release files / genmake-1.1.6.tar.gz
| Download URL | genmake-1.1.6.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10c6c1af6fc1c98032a4379895e414927e1bcb54d1cb387cb104a67e8c539276
|
|
BLAKE2b-256 checksum How to use checksums |
f7c3539484fd7d9e68c4fc117333539646d6ee74cb8e753fdffaafc2680d82bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / genmake-1.1.6-py3-none-any.whl
| Download URL | genmake-1.1.6-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41647b35d0251e38d3de667569fd298eebae3f5b7a4fea6b4d5b5b1c85663564
|
|
BLAKE2b-256 checksum How to use checksums |
21b0383108fe8ed9cf77b5293f7102cd8c60db75a7a84fbb14643a7756e592f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for genmake 1.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.