Compare commits
2 Commits
f6b37d602a
...
3e862d40c3
Author | SHA1 | Date |
---|---|---|
Ricard Illa | 3e862d40c3 | |
Ricard Illa | 9c9ba82334 |
|
@ -0,0 +1,7 @@
|
|||
dag := justfile_directory()
|
||||
|
||||
run:
|
||||
make --directory "{{dag}}"
|
||||
|
||||
render:
|
||||
make --file ../../common/render-dag.make
|
|
@ -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
|
15
flake.nix
15
flake.nix
|
@ -4,11 +4,12 @@
|
|||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = [ pkgs.gnumake ];
|
||||
};
|
||||
});
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages =
|
||||
[ pkgs.gnumake pkgs.makefile2graph pkgs.graphviz pkgs.just ];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
dag := justfile_directory()
|
||||
|
||||
run:
|
||||
gmake --directory "{{dag}}"
|
||||
|
||||
render:
|
||||
make --file ../../common/render-dag.make
|
|
@ -0,0 +1,7 @@
|
|||
dag := justfile_directory()
|
||||
|
||||
run:
|
||||
make --directory "{{dag}}"
|
||||
|
||||
render:
|
||||
make --file ../../common/render-dag.make
|
|
@ -0,0 +1,7 @@
|
|||
dag := justfile_directory()
|
||||
|
||||
run:
|
||||
make --directory "{{dag}}"
|
||||
|
||||
render:
|
||||
make --file ../../common/render-dag.make
|
|
@ -0,0 +1,7 @@
|
|||
dag := justfile_directory()
|
||||
|
||||
run:
|
||||
make --directory "{{dag}}"
|
||||
|
||||
render:
|
||||
make --file ../../common/render-dag.make
|
|
@ -0,0 +1,7 @@
|
|||
dag := justfile_directory()
|
||||
|
||||
run:
|
||||
kvmd-pstrun -- make --directory "{{dag}}"
|
||||
|
||||
render:
|
||||
make --file ../../common/render-dag.make
|
Loading…
Reference in New Issue