2 include $(TOP)/mk/boilerplate.mk
5 # You'll only get this with Parallel Haskell or
8 ifeq "$(BuildingParallel)" "YES"
9 INSTALL_PARALLEL_SCRIPTS = YES
11 ifeq "$(BuildingGranSim)" "YES"
12 INSTALL_PARALLEL_SCRIPTS = YES
15 ifeq "$(INSTALL_PARALLEL_SCRIPTS)" "YES"
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
22 BASH_PROGS = gr2ps gr2jv gr2ap gr2gran
31 PERL_INSTALLERS = $(addprefix install.perl.,$(PERL_PROGS))
32 BASH_INSTALLERS = $(addprefix install.bash.,$(BASH_PROGS))
34 .PHONY: install.perl.%
35 .PHONY: install.bash.%
37 install :: $(PERL_INSTALLERS) $(BASH_INSTALLERS)
39 $(PERL_INSTALLERS): install.perl.%:
41 echo "#!$(PERL)" >> $(bindir)/$*
42 cat $*.pl >> $(bindir)/$*
43 $(EXECUTABLE_FILE) $(bindir)/$*
45 $(BASH_INSTALLERS): install.bash.%:
47 echo "#!$(BASH)" >> $(bindir)/$*
48 cat $*.bash >> $(bindir)/$*
49 $(EXECUTABLE_FILE) $(bindir)/$*
51 BINDIST_EXTRAS += $(addsuffix .pl,$(PERL_PROGS))
52 BINDIST_EXTRAS += $(addsuffix .bash,$(BASH_PROGS))
53 include $(TOP)/mk/bindist.mk
55 include $(TOP)/mk/target.mk