Adding a `make formatdb` target.

Target will,

 * Canonicalize the database by running `./utils/sort_db.py`
 * Regenerate the [`Info.md` file](database/Info.md)

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2019-01-26 17:49:00 +13:00
parent 47294cf45d
commit a0d1c98056
1 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,16 @@ checkdb:
$(IN_ENV) python3 utils/checkdb.py --db-root $$DB; \
fi; done
formatdb:
@make checkdb
@for DB in database/*; do if [ -d $$DB ]; then \
echo ; \
echo "Formatting $$DB"; \
echo "============================"; \
($(IN_ENV) cd $$DB; python3 ../../utils/sort_db.py); \
fi; done
$(IN_ENV) ./utils/info_md.py
clean:
$(MAKE) -C database clean
$(MAKE) -C fuzzers clean