This is being replaced by a tool with roughly the same functionality, but now written in Rust: https://github.com/dccsillag/tap. Thanks to this, it is now more reliable and has a better CLI.
This shell script version will no longer be developed.
Tap is a tool for easily building your projects (mainly those written in C/C++).
Make has its flaws, but it still outshines most other build systems (namely
CMake and Meson, which are quite mainstream) in its user interface for us
people who make the shell their home -- just run make
. No need to create
a build directory, run some command and then run make
/ninja
in the build
directory.
So, Tap is a layer of abstraction over the mess that is C/C++ build systems,
providing a uniform interface very much like the one provided by make
. See
the Usage section for examples.
tap
or
tap -B
You can also specify build modes, as such:
tap -m <MODE>
The following modes are available:
debug
(not optimized, with assertions, with debug symbols)release
(optimized, without assertions, without debug symbols)release+debug
(optimized, without assertions, with debug symbols)optsize
(optimized for size, without assertions, without debug symbols)
tap -C
tap -I
If you run with sudo
, then the binaries will be installed to the path
proposed by the underlying build system. However, if tap -I
is not run as
root then binaries will be installed to ~/.local/bin/
.
Just run the install script (or copy the polybuild.sh
script to somewhere in your $PATH
yourself).
./install.sh
or
sudo ./install.sh