Generate makefiles quickly with MakeMaker.
- Download the latest version of MakeMaker.
- Extract it anywhere you want.
- Run
sudo make install
on the MakeMaker folder. - Done!
Now you can use mm
to run MakeMaker. Please, check our current specification below.
### List ###
# List all targets (only targets, not their respective commands)
mm list
# List entire makefile
mm list -A
# List variables
mm list -V
# List a single target (with the commands)
mm list <target>
### Targets ###
# Create target
mm add <target>
# Rename target
mm edit <oldTargetName> <newTargetName>
# Delete a target
mm remove <target>
### Commands ###
## Add command to target *(also create the target if it doesn't exist)*
mm add <target> <command>
Where <command> is
<compiler> <filename.ext, filename2.ext, ...> <flags>
## Replace command from specific target.
mm edit <target>:<number_line> <command>
Where <command> is just
<compiler> <filename.ext, filename2.ext, ...> <flags>
# Delete command
mm remove <target>:<number_line>
### Variables ###
# Add variable
mm set -v <myVariableKey1>=<myVarialeValue1> <myVariableKey2>=<myVariableValue2> ...
# Edit variable
mm set -v <myExistingVariableKey>=<myNewValue>
# Remove variable
mm set -v <myExistingVariableKey>=
Following you can check a description about the repository organization:
# Source code. Here you can find all the source code of MakeMaker.
src/
exceptions/ # Some useless exceptions
tests/ # Some uncompleted unity and integration tests
# MakeMaker documentation (some diagrams and other annoying things from software engineering).
documentation/
# Here you can find some makefile samples that MakeMaker can parse / work with.
examples/
# Folder where the compiled binaries are stored (only after compilation process).
binary/
MakeMaker was created by Emmanuel Podestá Junior, Fernando Paladini and Lucas Neis for "Software Engineering" class at UFSC (2015-01).