Permalink
Browse files

Cabalised

  • Loading branch information...
1 parent 1644e34 commit f520e472ced15ab2a4243d02c2b303379182ff18 Andy Gimblett committed Nov 9, 2009
Showing with 87 additions and 0 deletions.
  1. +36 −0 LICENSE
  2. +25 −0 Makefile
  3. +2 −0 Setup.hs
  4. +24 −0 osxSetup.cabal
View
@@ -0,0 +1,36 @@
+Copyright (c) 2009, Eric Kow, Andy Gimblett
+All rights reserved.
+
+Developed by:
+
+ Eric Kow <eric.kow@gmail.com>
+ Andy Gimblett <haskell@gimbo.org.uk>
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditi ons and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+ * Neither the names of Eric Kow, Andy Gimblett, nor the names of
+ its contributors may be used to endorse or promote products
+ derived from this software without specific prior written
+ permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -0,0 +1,25 @@
+TARGET := osxSetup
+SRC := Distribution
+
+HASKELLS := $(shell find $(SRC) -name "*.hs" -or -name "*.lhs")
+
+clean:
+ @find . -name '*~' -exec rm -vf {} ';' && \
+ find . -name '*.hi' -exec rm -vf {} ';' && \
+ find . -name '*.o' -exec rm -vf {} ';' && \
+ runghc Setup clean
+
+nuke: clean
+
+dist/setup-config: $(TARGET).cabal
+ runghc Setup configure
+
+dist/build: $(HASKELLS) dist/setup-config
+ runghc Setup build
+
+configure: $(HASKELLS) dist/setup-config
+
+build: dist/build
+
+lint:
+ hlint $(HASKELLS)
View
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
View
@@ -0,0 +1,24 @@
+Name: osxSetup
+Version: 0.1.0
+Stability: Alpha
+Synopsis: Build/installation helpers for Mac OS X.
+Description:
+ Build/installation helpers for Mac OS X.
+Category: Data
+License: BSD3
+License-file: LICENSE
+Copyright: Eric Kow & Andy Gimblett
+Author: Eric Kow <eric.kow@gmail.com>
+Maintainer: Andy Gimblett <haskell@gimbo.org.uk>
+Build-Type: Simple
+Cabal-Version: >=1.6
+
+Source-Repository head
+ Type: git
+ Location: http://github.com/gimbo/osxSetup.hs
+
+Library
+ Build-Depends: base >= 4 && < 5, Cabal >= 1.6, directory,
+ filepath, process, unix
+ Exposed-modules: Distribution.MacOSX
+ ghc-options: -fwarn-tabs -Wall

0 comments on commit f520e47

Please sign in to comment.