passwdgen/README.md

56 lines
825 B
Markdown
Raw Normal View History

2020-10-22 12:48:54 +00:00
# passwdgen
### a rudimentary random string password generator
2024-02-15 21:54:52 +00:00
For demo purposes only
2024-02-23 20:31:03 +00:00
## Build
**Bare Bones**
```bash
mkdir build
g++ -o build/passwdgen ./passwdgen.cpp
```
**From CMAKE**
```bash
mkdir build
cd build
cmake ..
make
```
Then, just copy the compiled binary to somewhere on your $PATH
2025-09-05 11:43:46 +00:00
## Testing
To run the tests:
```bash
mkdir build
cd build
cmake ..
make
ctest
```
or directly:
```bash
./tests/passwdgen_test
```
## Makefile
Now supports standard targets via `Makefile`:
```bash
make # alias for build (Release)
make test # build + run tests
sudo make install # to /usr/local/bin, /lib, /include
make uninstall # remove installed files
make clean # rm -rf build/
```
Variables:
- `PREFIX=/opt/myprefix make install`
- `DESTDIR=/tmp/root PREFIX=/usr make install` (packaging)