Skip to content

Commit

Permalink
Moved *.hs into src/ directory, updated for GHC 6.6
Browse files Browse the repository at this point in the history
darcs-hash:20070625202637-8fbd9-36dd14d5142bd59100c91e6ee6d0a480a7c45c0e.gz
  • Loading branch information
tmoertel committed Jun 25, 2007
1 parent 17a5014 commit c84565c
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Expand Up @@ -3,7 +3,7 @@
#
# CVS: $Id: Makefile,v 1.11 2005/01/27 14:43:52 thor Exp $
#
# Copyright (C) 2003-6 Tom Moertel <tom@moertel.com>
# Copyright (C) 2003-07 Tom Moertel <tom@moertel.com>
# Licensed under the terms of the GNU General Public License.
# See the LICENSE file in the project distribution for details.
#-----------------------------------------------------------------------------
Expand All @@ -30,14 +30,14 @@ TESTS_OUT_XSL2 := $(TESTS_IN:.xsl=.xsl2)
TESTS_OUT_DIFF := $(TESTS_IN:.xsl=.diff)
TESTS_OUT_PXSL2 := $(TESTS_IN:.xsl=.pxsl2)

HASKELL := $(wildcard *.hs)
HASKELL := $(wildcard src/*.hs)
LIB_HASKELL :=
ALL_HASKELL := $(sort $(HASKELL) $(LIB_HASKELL))

GHC_PACKAGE = -package lang
GHC_PACKAGE =
GHC_OPT =
# GHC_WARN = -Wall -fno-warn-name-shadowing
GHC_OPTS =
GHC_OPTS = -isrc

GHC := $(strip ghc $(GHC_WARN) $(GHC_OPT) $(GHC_OPTS) \
$(GHC_PACKAGE))
Expand Down Expand Up @@ -121,8 +121,8 @@ README-online.html : README.html

# build rules for Haskell

% : %.hs $(ALL_HASKELL) Makefile
sed -e 's/@VERSION@/$(VERSION)/' -e 's/@YEAR@/$(YEAR2)/' $< > $@.x.hs
pxslcc : $(ALL_HASKELL) Makefile
sed -e 's/@VERSION@/$(VERSION)/' -e 's/@YEAR@/$(YEAR2)/' src/$@.hs > $@.x.hs
$(GHC) -o $@ --make $@.x.hs
rm -f $@.x.hs
$(STRIP) $@ || echo "(Binary not stripped. No big deal.)"
Expand All @@ -142,7 +142,7 @@ README.html : README text-to-html.pl

.PHONY : clean
clean :
rm -f *.o *.hi *.bak $(GENERATED)
rm -f src/*.o src/*.hi src/*.bak $(GENERATED)
rm -rf $(DOCDIR)

.PHONY : cleandeps
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c84565c

Please sign in to comment.