Fix Trac #2985: generating superclasses and recursive dictionaries
[ghc-hetmet.git] / utils / parallel / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3
4 #
5 # You'll only get this with Parallel Haskell or 
6 # GranSim..
7 #
8 ifeq "$(BuildingParallel)" "YES"
9 INSTALL_PARALLEL_SCRIPTS = YES
10 endif
11 ifeq "$(BuildingGranSim)" "YES"
12 INSTALL_PARALLEL_SCRIPTS = YES
13 endif
14
15 ifeq "$(INSTALL_PARALLEL_SCRIPTS)" "YES"
16
17 PERL_PROGS = \
18   grs2gr gr2qp qp2ps ghc-fool-sort ghc-unfool-sort gr2pe gr2java \
19   qp2ap gr2RTS RTS2gran gran-extr gp-ext-imp tf avg-RTS SPLIT \
20   AVG SN get_SN sn_filter ps-scale-y
21
22 BASH_PROGS = gr2ps gr2jv gr2ap gr2gran
23
24 else
25
26 PERL_PROGS =
27 BASH_PROGS =
28
29 endif
30
31 PERL_INSTALLERS = $(addprefix install.perl.,$(PERL_PROGS))
32 BASH_INSTALLERS = $(addprefix install.bash.,$(BASH_PROGS))
33
34 .PHONY: install.perl.%
35 .PHONY: install.bash.%
36
37 install :: $(PERL_INSTALLERS) $(BASH_INSTALLERS)
38
39 $(PERL_INSTALLERS): install.perl.%:
40         rm -f               $(bindir)/$*
41         echo "#!$(PERL)" >> $(bindir)/$*
42         cat $*.pl        >> $(bindir)/$*
43         $(EXECUTABLE_FILE)  $(bindir)/$*
44
45 $(BASH_INSTALLERS): install.bash.%:
46         rm -f               $(bindir)/$*
47         echo "#!$(BASH)" >> $(bindir)/$*
48         cat $*.bash      >> $(bindir)/$*
49         $(EXECUTABLE_FILE)  $(bindir)/$*
50
51 BINDIST_EXTRAS += $(addsuffix .pl,$(PERL_PROGS))
52 BINDIST_EXTRAS += $(addsuffix .bash,$(BASH_PROGS))
53 include $(TOP)/mk/bindist.mk
54
55 include $(TOP)/mk/target.mk