time-1.2.0.2: test/Makefile
GHC = ghc
GHCFLAGS = -package time
default:
make CurrentTime.run ShowDST.run test
TestMonthDay: TestMonthDay.o
$(GHC) $(GHCFLAGS) $^ -o $@
ConvertBack: ConvertBack.o
$(GHC) $(GHCFLAGS) $^ -o $@
TestCalendars: TestCalendars.o
$(GHC) $(GHCFLAGS) $^ -o $@
TestTime: TestTime.o
$(GHC) $(GHCFLAGS) $^ -o $@
LongWeekYears: LongWeekYears.o
$(GHC) $(GHCFLAGS) $^ -o $@
ClipDates: ClipDates.o
$(GHC) $(GHCFLAGS) $^ -o $@
AddDays: AddDays.o
$(GHC) $(GHCFLAGS) $^ -o $@
TestFormat: TestFormat.o TestFormatStuff.o
$(GHC) $(GHCFLAGS) $^ -o $@
TestFormatStuff.o: TestFormatStuff.c TestFormatStuff.h
gcc -o $@ -c $<
TestParseDAT: TestParseDAT.o
$(GHC) $(GHCFLAGS) $^ -o $@
TestEaster: TestEaster.o
$(GHC) $(GHCFLAGS) $^ -o $@
CurrentTime: CurrentTime.o
$(GHC) $(GHCFLAGS) $^ -o $@
ShowDST: ShowDST.o
$(GHC) $(GHCFLAGS) $^ -o $@
TimeZone: TimeZone.o
$(GHC) $(GHCFLAGS) $^ -o $@
TimeZone.ref: FORCE
date +%z > $@
TestParseTime: TestParseTime.o
$(GHC) $(GHCFLAGS) -package QuickCheck $^ -o $@
test: \
TestMonthDay.diff \
ConvertBack.diff0 \
TestCalendars.diff \
TestTime.diff \
LongWeekYears.diff \
ClipDates.diff \
AddDays.diff \
TimeZone.diff \
TestFormat.diff0 \
TestParseDAT.diff \
TestEaster.diff \
# TestParseTime.run \
UseCases.o
clean:
rm -rf TestMonthDay ConvertBack TestCalendars TestTime LongWeekYears ClipDates \
AddDays TestFormat TestParseDAT TestEaster CurrentTime ShowDST TimeZone TimeZone.ref TestParseTime \
*.out *.o *.hi Makefile.bak
%.diff: %.ref %.out
diff -u $^
%.diff0: %.out
echo -n | diff -u - $^
%.out: %
./$< > $@
%.run: %
./$<
%.hi: %.o
@:
%.o: %.hs
$(GHC) $(GHCFLAGS) -c $< -o $@
%.o: %.lhs
$(GHC) $(GHCFLAGS) -c $< -o $@
FORCE:
.SECONDARY:
# TestTime.o TestFormat.o CurrentTime.o ShowDST.o TimeZone.o: $(patsubst %.hs,%.hi,$(SRCS))
TestFixed.o: ../Data/Fixed.hi