Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## 1.Name`s this script like ---> makefile
- ## 2.Put this file in you binary dir like ---> /bin pr /usr/bin
- ## 3.Then cd to project dir where file ---> main.cpp
- ## 4.Run ---> makefile main
- rm -f $1
- result=$(make "$1" -n)
- echo $1":" > Makefile
- echo -e "\t"$result >> Makefile
- echo "clean:" >> Makefile
- echo -e "\trm -f $1" >> Makefile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement