I am trying to build pdflatex as part of TeX Live from source. Due to a variety of reasons that are not important, I need to build all these tools from scratch.
I have been able to build TeX Live from scratch using its source from this github repo: https://github.com/TeX-Live/texlive-source. I loosely followed the build instructions from TeX Live's site here: https://tug.org/texlive/doc/tlbuild.html which for the most part mean running these commands in the checked out repo.
# Inside the repo
mkdir OUTPUT
./configure --prefix=$(pwd)/OUTPUT --enable-build-in-source-tree
make -j8
make install
From which I can see most of the correct binaries like pdftex and latexmk inside the directory
OUTPUT/bin/x86_64-pc-linux-gnu
My next goal is to build pdflatex (which I learned does not function exactly like pdftex as mentioned here: What's the difference between pdfTeX and pdfLaTeX?). I am not really sure how to proceed from here though. I believe my next step is to somehow install the pdflatex format because it can be passed to the pdftex binary as a format flag like
pdftex -fmt=pdflatex
but I have also seen some other folks saying that pdflatex should come installed with TeX Live.
Does anyone by chance have experience or knowledge in this area?