All installed Haskell prgms have an inplace and an installed version
[ghc-hetmet.git] / utils / hasktags / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3
4 # We have two version: the inplace version compiled by the bootstrap compiler
5 #   and the install version compiled by the stage 1 compiler
6 ifeq "$(stage)" "2"
7 HS_PROG           = hasktags
8 else
9 HS_PROG           = hasktags-inplace
10 endif
11
12 CLEAN_FILES += Main.hi
13
14 SRC_HC_OPTS += -Wall
15
16 INSTALL_PROGS += $(HS_PROG)
17
18 binary-dist:
19         $(INSTALL_DIR)                $(BIN_DIST_DIR)/utils/hasktags
20         $(INSTALL_DATA)    Makefile   $(BIN_DIST_DIR)/utils/hasktags/
21         $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/hasktags/
22
23 include $(TOP)/mk/target.mk