diff --git a/microformats2-parser.cabal b/microformats2-parser.cabal
--- a/microformats2-parser.cabal
+++ b/microformats2-parser.cabal
@@ -1,5 +1,5 @@
 name:            microformats2-parser
-version:         1.0.2.1
+version:         1.0.2.2
 synopsis:        A Microformats 2 parser.
 description:     A parser for Microformats 2 (http://microformats.org/wiki/microformats2), a simple way to describe structured information in HTML.
 category:        Web
@@ -62,51 +62,65 @@
     ghc-options: -Wall
     hs-source-dirs: library
 
+flag serverbin
+    description: Build demo/API HTTP server binary
+    default: False
+
 executable microformats2-parser
-    build-depends:
-        base >= 4.7.0.0 && < 5
-      , base-compat >= 0.8.0
-      , options
-      , wai
-      , wai-cli
-      , wai-extra
-      , network
-      , network-uri
-      , data-default
-      , text
-      , scotty
-      , aeson
-      , aeson-pretty
-      , blaze-html
-      , blaze-markup
-      , githash
-      , microformats2-parser
+    if flag(serverbin)
+        build-depends:
+            base >= 4.7.0.0 && < 5
+          , base-compat >= 0.8.0
+          , options
+          , wai
+          , wai-cli
+          , wai-extra
+          , network
+          , network-uri
+          , data-default
+          , text
+          , scotty
+          , aeson
+          , aeson-pretty
+          , blaze-html
+          , blaze-markup
+          , githash
+          , microformats2-parser
+    else
+        buildable: False
     default-language: Haskell2010
     ghc-options: -Wall -threaded -rtsopts "-with-rtsopts=-N -qa -qm"
     hs-source-dirs: executable
     main-is: Server.hs
     other-modules: WebApp
 
+flag serverlambda
+    description: Build demo/API AWS Lambda handler binary
+    default: False
+
 executable microformats2-parser-lambda
-    build-depends:
-        base >= 4.7.0.0 && < 5
-      , base-compat >= 0.8.0
-      , options
-      , aws-lambda-haskell-runtime
-      , aws-lambda-haskell-runtime-wai
-      , wai
-      , wai-extra
-      , network
-      , network-uri
-      , data-default
-      , text
-      , scotty
-      , aeson
-      , aeson-pretty
-      , blaze-html
-      , blaze-markup
-      , githash
-      , microformats2-parser
+    if flag(serverlambda)
+        build-depends:
+                base >= 4.7.0.0 && < 5
+              , base-compat >= 0.8.0
+              , options
+              , aws-lambda-haskell-runtime
+              , aws-lambda-haskell-runtime-wai
+              , wai
+              , wai-extra
+              , network
+              , network-uri
+              , data-default
+              , text
+              , scotty
+              , aeson
+              , aeson-pretty
+              , blaze-html
+              , blaze-markup
+              , githash
+              , microformats2-parser
+    else
+        buildable: False
     default-language: Haskell2010
     ghc-options: -Wall -threaded -rtsopts "-with-rtsopts=-N -qa -qm"
     hs-source-dirs: executable
