Separate make file actions

This commit is contained in:
Martin Fredin 2023-04-03 12:24:22 +02:00
parent e5dc28b282
commit 077f76eb12
3 changed files with 20 additions and 12 deletions

2
.gitignore vendored
View file

@ -9,3 +9,5 @@ test_program_result
output/ output/
*.o *.o
*.out *.out
*.aux
*.log

View file

@ -1,6 +1,6 @@
.PHONY : sdist clean .PHONY : sdist clean
language : src/Grammar/Test Grammar.pdf language : src/Grammar/Test
cabal install --installdir=. --overwrite-policy=always cabal install --installdir=. --overwrite-policy=always
src/Grammar/Test.hs src/Grammar/Lex.x src/Grammar/Par.y src/Grammar/Layout : Grammar.cf src/Grammar/Test.hs src/Grammar/Lex.x src/Grammar/Par.y src/Grammar/Layout : Grammar.cf
@ -23,13 +23,15 @@ Grammar.tex :
Grammar.pdf : Grammar.tex Grammar.pdf : Grammar.tex
pdflatex Grammar.tex pdflatex Grammar.tex
rm Grammar.aux Grammar.dvi Grammar.fdb_latexmk Grammar.fls Grammar.log rm Grammar.aux Grammar.log
pdf : Grammar.pdf
clean : clean :
rm -r src/Grammar rm -r src/Grammar
rm language rm language
rm -rf dist-newstyles rm -rf dist-newstyles
rm Grammar.aux Grammar.fdb_latexmk Grammar.fls Grammar.log Grammar.pdf Grammar.synctex.gz Grammar.tex rm Grammar.aux Grammar.fdb_latexmk Grammar.fls Grammar.log Grammar.synctex.gz Grammar.tex
test : test :
cabal v2-test cabal v2-test

View file

@ -6,15 +6,19 @@ pkgs.haskellPackages.developPackage {
withHoogle = true; withHoogle = true;
modifier = drv: modifier = drv:
pkgs.haskell.lib.addBuildTools drv ( pkgs.haskell.lib.addBuildTools drv (
(with pkgs; [ hlint haskell-language-server ghc jasmin llvmPackages_15.libllvm]) (with pkgs; [ hlint
haskell-language-server
ghc
jasmin
llvmPackages_15.libllvm
texlive.combined.scheme-full
])
++ ++
(with pkgs.haskellPackages; [ (with pkgs.haskellPackages; [ cabal-install
cabal-install
stylish-haskell stylish-haskell
BNFC BNFC
alex alex
happy happy
]) ]));
);
} }