mirror of https://github.com/openXC7/prjxray.git
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:
parent
47294cf45d
commit
a0d1c98056
10
Makefile
10
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue