machine: simplify a bit the horizon checking
[haskell/symantic-parser.git] / Makefile
index 394240c04c0a4494c32243bd0515f94667728e88..8369082c2c3832cf05a2c02ed9c70e61b70a0ccc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ repl:
        cabal repl
 
 t:
-       cabal test -fdump-splice --test-show-details always --test-options "--color always --size-cutoff 100000"
+       cabal test -fdump-splices --test-show-details always --test-options "--color always --size-cutoff 100000"
 t/accept:
        cabal test --test-show-details always --test-options "--accept --color always --size-cutoff 100000"
 t/prof:
@@ -32,8 +32,12 @@ tar:
        cabal haddock --haddock-for-hackage --enable-doc
 upload: LANG=C
 upload: tar
-       cabal upload --publish dist-newstyle/sdist/$(package)-$(version).tar.gz
-       cabal upload --publish --documentation dist-newstyle/$(package)-$(version)-docs.tar.gz
+       cabal upload $(CABAL_UPLOAD_FLAGS) dist-newstyle/sdist/$(package)-$(version).tar.gz
+       cabal upload $(CABAL_UPLOAD_FLAGS) --documentation dist-newstyle/$(package)-$(version)-docs.tar.gz
+%/publish: CABAL_UPLOAD_FLAGS+=--publish
+%/publish: %
+       
+publish: upload/publish
 
 nix-build:
        nix -L build