--- Makefile.orig	2002-02-28 07:33:03.000000000 +0100
+++ Makefile	2011-03-26 12:47:27.290996479 +0100
@@ -56,7 +56,6 @@
 #
 PACKAGE = idoc
 SRCS    = GetOpt.hs IDoc.hs
-OBJS    = $(patsubst %.hs,%.o,$(filter %.hs,$(SRCS)))
 
 # file that contains a `versnum = "x.y.z"' line
 #
@@ -78,18 +77,10 @@
 #
 default: idoc
 
-# compile rules
-#
-%.o: %.hs
-	$(RM) $@
-	$(HC) -c $(HCFLAGS) $<
-%.hi: %.o
-	@:
-
 # link target
 #
-idoc: $(OBJS)
-	$(HC) $(HCFLAGS) -o $@ $^
+idoc: $(SRCS)
+	$(HC) --make $(HCFLAGS) -o $@ $^
 
 # install target
 #
@@ -116,8 +107,3 @@
 	tar czf $(PACKAGE)-$(VERSION).tar.gz\
 	  $(addprefix $(PACKAGE)-$(VERSION)/,$(DISTFILES))
 	$(RM) $(PACKAGE)-$(VERSION)
-
-# dependencies
-#
-IDoc.o  : IDoc.hs GetOpt.hi
-GetOpt.o: GetOpt.hs
