From ae8ee83fe4b81e0e0b59ea4488926528c4c358db Mon Sep 17 00:00:00 2001 From: Xiretza Date: Wed, 10 Feb 2021 18:19:37 +0100 Subject: pyGHDL: automatically format generated files with black --- src/vhdl/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vhdl/Makefile b/src/vhdl/Makefile index 5294caf63..364708efe 100644 --- a/src/vhdl/Makefile +++ b/src/vhdl/Makefile @@ -79,31 +79,37 @@ vhdl-elocations_meta.adb: vhdl-elocations_meta.adb.in vhdl-elocations.ads $(DEPS ../../pyGHDL/libghdl/vhdl/nodes.py: $(DEPS) $(PNODESPY) $(RM) $@ $(PNODESPY) $(NODES_FLAGS) libghdl-nodes > $@ + python -m black $@ chmod -w $@ ../../pyGHDL/libghdl/vhdl/nodes_meta.py: $(DEPS) $(PNODESPY) $(RM) $@ $(PNODESPY) $(NODES_FLAGS) libghdl-meta > $@ + python -m black $@ chmod -w $@ ../../pyGHDL/libghdl/std_names.py: $(PNODESPY) ../std_names.ads $(RM) $@ $(PNODESPY) $(NODES_FLAGS) libghdl-names > $@ + python -m black $@ chmod -w $@ ../../pyGHDL/libghdl/vhdl/tokens.py: $(PNODESPY) vhdl-tokens.ads $(RM) $@ $(PNODESPY) $(NODES_FLAGS) libghdl-tokens > $@ + python -m black $@ chmod -w $@ ../../pyGHDL/libghdl/vhdl/elocations.py: $(PNODESPY) vhdl-elocations.ads $(RM) $@ $(PNODESPY) $(ELOCATIONS_FLAGS) libghdl-elocs > $@ + python -m black $@ chmod -w $@ ../../pyGHDL/libghdl/errorout.py: $(PNODESPY) ../errorout.ads $(RM) $@ $(PNODESPY) $(ELOCATIONS_FLAGS) libghdl-errorout > $@ + python -m black $@ chmod -w $@ clean: -- cgit v1.2.3