.
├── build
│ ├── bin
│ │ └── lle
│ └── cmake
├── CMakeLists.txt
├── driver.c
├── include
│ ├── builtin.h
│ ├── def.h
│ ├── print.h
│ ├── sbrk.h
│ ├── string.h
│ └── system.h
├── README.md
├── run.sh
└── src
├── print.c
├── sbrk.c
├── string.c
└── system.c
$ ./run.sh [build/make]
$ ./run.sh rebuild
$ ./run.sh clean
$ ./run.sh
Make sure to set the run file to be executable.
$ chmod +x run.sh
Both do the same thing.
They run CMakeList.txt and then the Makefile generated by CMake.
$ ./run.sh make
$ ./run.sh build
Deletes previously generated files and then runs CMake and Make
$ ./run.sh rebuild
Removes the build/ directory.
$ ./run.sh clean
If there is binary executable inside of build/bin it will run it.
If there isn't, it will run the build commands for you...
$ ./run.sh
Generally while modifying the source code, you should rebuild the project and rerun the executable file.
$ ./run.sh rebuild; ./run.sh