diff options
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 26 | 
1 files changed, 20 insertions, 6 deletions
@@ -5,25 +5,39 @@ SpineSearchAction := 'https://sisudoc.org/spine_search'  SpineCGIform      := 'spine_search'  SpineSQLdb        := 'spine.search.db' +default: flake-check + +flake-check: +	nix flake update; \ +	nix flake check; \ +	echo -e 'nix flake show ❯❯\n'; \ +	nix flake show; \ +	echo -e '\n❯❯ nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell" -c zsh\n'; \ +	echo -e '❯❯ nix develop\n❯❯ nix develop -c zsh\n'; \ +	echo -e '❯❯ nix build ".#spine-ldc" --print-build-logs |& nom\n❯❯ nix build ".#spine-dmd" --print-build-logs |& nom\n'; \ +	echo -e '❯❯ make -s\n❯❯ make -s nix-build-ldc\n❯❯ make -s nix-build-dmd\n'; \ +	echo -e '❯❯ make -s ldc\n❯❯ make -s dmd\n'; \ +	echo -e '❯❯ $(DUB) --compiler=ldc2 --build=ldc2\n❯❯ $(DUB) --compiler=dmd --build=dmd\n'; +  nix-devshell: -	echo -ne "\n- nix flake update && nix flake check --show-trace && nix flake show && nix develop .#devShell\n\n- nix build .#default --print-build-logs\n- nix build .#spine-search-dmd --print-build-logs\n- nix build .#spine-search-ldc --print-build-logs\n- nix build .#spine-search-gdc --print-build-logs\n\n"; \ -	nix flake update && nix flake check --show-trace && nix flake show && nix develop .#devShell +	echo -ne '\n❯❯ nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell"\n\n❯❯ nix build ".#default" --print-build-logs\n❯❯ nix build ".#spine-search-dmd" --print-build-logs\n❯❯ nix build ".#spine-search-ldc" --print-build-logs\n❯❯ nix build ".#spine-search-gdc" --print-build-logs\n\n'; \ +	nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell"  # nix build  build:  	nix-build  nix-build-default: -	nix build .#default --print-build-logs +	nix build ".#default" --print-build-logs  nix-build-dmd: -	nix build .#spine-dmd --print-build-logs +	nix build ".#spine-search-dmd" --print-build-logs  nix-build-ldc: -	nix build .#spine-ldc --print-build-logs +	nix build ".#spine-search-ldc" --print-build-logs  nix-build-gdc: -	nix build .#spine-gdc --print-build-logs +	nix build ".#spine-search-gdc" --print-build-logs  get_depends:  	hwd=$$(echo `pwd`) && \  | 
