Hi all! I’m new here.
Description
I came up with a data format very similar to JSON to help plan out and express the structure of a file system in a neat way. I’m working on a project where I’m building a compiler to convert the description into a bash script to generate the file system.
What I did
I was trying to implement the two-step installation process: configure followed by a make. I didn’t use automake because it felt a bit too complicated for me for now.
Here’s a tiny description of what I did:
Requirements
- build-essential: for
gcc
andg++
-
flex
: for lexing -
bison
: for parsing -
tree
: to visualize a file system
Files to consider
configure
Here I wrote a bash script to check whether the requirements are available. If not, they are installed using:
$ apt-get install <package-name>
After installation, the locations of the executables are stored in few variables and a file named tools
is generated having the list of the requirements and their respective locations.
Makefile
The file tools
generated by configure
is included
and based on that the executable fs-make
is built using the make
command.
The command make install
copies the executable to /usr/local/bin/
.
What I want
I’ve never done anything like this before. I would appreciate if anyone could kindly advise me on the build procedure used by the project.
Thank you. Stay safe.