Compare commits

...

2 Commits

Author SHA1 Message Date
Ricard Illa 3e862d40c3 feat: added justfiles 2023-05-19 17:17:34 +02:00
Ricard Illa 9c9ba82334 feat: render dags as png images with makefile2graph 2023-05-19 17:13:46 +02:00
8 changed files with 64 additions and 7 deletions

7
caladan/acme_refresh/justfile Executable file
View File

@ -0,0 +1,7 @@
dag := justfile_directory()
run:
make --directory "{{dag}}"
render:
make --file ../../common/render-dag.make

14
common/render-dag.make Normal file
View File

@ -0,0 +1,14 @@
.PHONY: all clean
all: rendered-dag.png clean
rendered-dag.png: rendered-dag.dot
dot -Tpng $< -o $@
rendered-dag.dot: Makefile
make -Bnd -f $< | make2graph > $@
clean:
rm -f rendered-dag.dot
# vi: ft=make

View File

@ -4,11 +4,12 @@
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }: outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let flake-utils.lib.eachDefaultSystem (system:
pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
in { in {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
packages = [ pkgs.gnumake ]; packages =
}; [ pkgs.gnumake pkgs.makefile2graph pkgs.graphviz pkgs.just ];
}); };
});
} }

7
fugu/acme_refresh/justfile Executable file
View File

@ -0,0 +1,7 @@
dag := justfile_directory()
run:
gmake --directory "{{dag}}"
render:
make --file ../../common/render-dag.make

7
narwhal/acme_renew/justfile Executable file
View File

@ -0,0 +1,7 @@
dag := justfile_directory()
run:
make --directory "{{dag}}"
render:
make --file ../../common/render-dag.make

7
narwhal/ddns/justfile Executable file
View File

@ -0,0 +1,7 @@
dag := justfile_directory()
run:
make --directory "{{dag}}"
render:
make --file ../../common/render-dag.make

7
narwhal/mirrors/justfile Executable file
View File

@ -0,0 +1,7 @@
dag := justfile_directory()
run:
make --directory "{{dag}}"
render:
make --file ../../common/render-dag.make

7
pikvm/acme_refresh/justfile Executable file
View File

@ -0,0 +1,7 @@
dag := justfile_directory()
run:
kvmd-pstrun -- make --directory "{{dag}}"
render:
make --file ../../common/render-dag.make