Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 392 Bytes
COMPILER = ghc -Wall
PROGNAME = Today
LOWER_PROGNAME = $(shell echo $(PROGNAME) | tr A-Z a-z)
MAIN = Main
TEST = Test.hs
all: test target clean start
test: $(PROGNAME).hs $(MAIN).hs $(Test)
runhaskell $(TEST)
target: $(PROGNAME).hs $(MAIN).hs
$(COMPILER) -o $(LOWER_PROGNAME) $(MAIN).hs
clean:
rm $(PROGNAME).hi $(PROGNAME).o
rm $(MAIN).hi $(MAIN).o
start:
./$(LOWER_PROGNAME)