]> www.average.org Git - pdns-pipe-nmc.git/blobdiff - build
Scrap the plan to verify valid proto/port
[pdns-pipe-nmc.git] / build
diff --git a/build b/build
index 004b9736533e3ff802c5e1258664f67a64102e30..c1f039fd8aa96c19369207e049b1d4e071d0be7f 100755 (executable)
--- a/build
+++ b/build
@@ -9,10 +9,16 @@ echo "Making $file.$sfx"
 #           -optl-pthread -pgml g++ "$file"
 # but cannot make it "only glibc is shared". And with static glibc,
 # getaddrinfo does not work on systems with different glibc.
+#
+# To build with ghc, run this:
+#ghc --make -optP-include -optPdist/build/autogen/cabal_macros.h "$file"
+# but it is still necessary to run `cabal configure` before to generate
+# the file `dist/build/autogen/cabal_macros.h`.
+
 cabal build
 case $? in
 0) ;;
 *) echo build falied; exit 1 ;;
 esac
-mv "$file" "$file.$sfx" || exit 1
+mv "dist/build/$file/$file" "$file.$sfx" || exit 1
 gpg --detach-sign "$file.$sfx"