[project @ 2001-03-23 16:36:20 by simonmar]
[ghc-hetmet.git] / ghc / utils / genprimopcode / Makefile
index 50c363b..753fd94 100644 (file)
@@ -1,19 +1,15 @@
+# -----------------------------------------------------------------------------
+# $Id: Makefile,v 1.5 2001/03/23 16:36:22 simonmar Exp $
+
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
 
-INSTALL_PROGS += genprimopcode
-
-SRC_HC_OPTS += -syslib text
-OBJS = Main.o
-
-CLEAN_FILES += genprimopcode
-
-all :: genprimopcode
-
-genprimopcode: Main.o
-       $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(OBJS)
+HS_PROG        = genprimopcode
+SRC_HC_OPTS   += -syslib text
 
-CLEAN_FILES += genprimopcode
-CLEAN_FILES += $(OBJS)
+# genprimopcode is needed to boot in ghc/compiler...
+ifneq "$(BootingFromHc)" "YES"
+boot :: all
+endif
 
 include $(TOP)/mk/target.mk