--- /dev/null
+Name: blackboard-ddns
+Version: 0.1
+Synopsis: <Project description>
+Description: <Project description>
+Category: Network
+License: PublicDomain
+Author: PHO <pho at cielonegro.org>
+Maintainer: PHO <pho at cielonegro.org>
+Stability: Experimental
+Cabal-Version: >= 1.2
+Build-Type: Simple
+
+Executable blackboard-ddns
+ Build-Depends:
+ base, haskelldb
+
+ Main-Is:
+ Main.hs
+
+ GHC-Options:
+ -Wall
--- /dev/null
+# -*- makefile-gmake -*-
+#
+# Variables:
+#
+# CONFIGURE_ARGS :: arguments to be passed to ./Setup configure
+# default: --disable-optimization
+#
+# RUN_COMMAND :: command to be run for "make run"
+#
+
+GHC ?= ghc
+FIND ?= find
+RM_RF ?= rm -rf
+SUDO ?= sudo
+
+SETUP_FILE ?= $(wildcard Setup.*hs)
+CABAL_FILE ?= $(wildcard *.cabal)
+
+CONFIGURE_ARGS := --disable-optimization
+
+build: dist/setup-config Setup
+ ./Setup build
+
+ifeq ($(RUN_COMMAND),)
+run:
+ @echo "cabal-package.mk: No command to run."
+ @echo "cabal-package.mk: If you want to run something, define RUN_COMMAND variable."
+else
+run: build
+ @echo ".:.:. Let's go .:.:."
+ $(RUN_COMMAND)
+endif
+
+dist/setup-config: $(CABAL_FILE) Setup
+ ./Setup configure $(CONFIGURE_ARGS)
+
+Setup: $(SETUP_FILE)
+ $(GHC) --make Setup
+
+clean:
+ $(RM_RF) dist Setup *.o *.hi .setup-config *.buildinfo
+ $(FIND) . -name '*~' -exec rm -f {} \;
+
+doc: dist/setup-config Setup
+ ./Setup haddock
+
+install: build
+ $(SUDO) ./Setup install
+
+sdist: Setup
+ ./Setup sdist
+
+test: build
+ ./Setup test
+
+.PHONY: build run clean install doc sdist test