Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiger1013/C-based-Makefile-interpreter
https://github.com/tiger1013/C-based-Makefile-interpreter
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tiger1013/C-based-Makefile-interpreter
- Owner: tiger1013
- Created: 2016-11-11T05:30:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-12T03:39:54.000Z (about 8 years ago)
- Last Synced: 2024-04-24T15:34:57.166Z (9 months ago)
- Language: C
- Size: 11.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - C-based-Makefile-interpreter
README
1.) Purpose: C-based Makefile interpreter- emulates UNIX's makefile functionality, also implementing concurrency.
2.) Usage: This will build the first target found in makefile ./make4061:
This will build only the specific target
./make4061 specifictargetAvailable Options:
-f filename: filename will be the name of the makefile, otherwise the default name ’makefile’ is assumed.
-n: Only displays the commands that would be run, doesn’t actually execute them.
-B: Do not check timestamps for target and input (i.e. always recompile).
-m log.txt: The log from make4061 will be stored on file log.txtExamples:
./make4061 -f yourownmakefile
./make4061 -n
./make4061 -m logfilename
3.) Other Information: This makefile assumes there can be only 10 targets in a makefile. So, the program is implemented on a fixed-size array of structs (See "util.h") The main work happens in "main.c", where the the makefile is parsed and is executed recurively using Depth-first search and exploiting concurrency.