[project @ 1996-06-27 15:55:53 by partain]
[ghc.git] / ghc / driver / Jmakefile
1 /* stuff to have before we get going */
2 MsubNeededHere(ghc)
3 UnlitNeededHere(depend)
4 InfoStuffNeededHere(docs)
5
6 DYN_LOADABLE_BITS = \
7         ghc-asm.prl \
8         ghc-recomp.prl \
9         ghc-iface.prl \
10         ghc-consist.prl \
11         ghc-split.prl
12
13 /* Literate-pgmming suffix rules used herein */
14 UnlitSuffixRule(.lprl,.prl)
15
16 MsubMakefileDependentProgramScriptTarget(PerlCmd,ghc,ghc.prl,/*no flags*/,/*Makefile*/)
17 AllTarget( $(DYN_LOADABLE_BITS) )
18
19 /* installation is hackish: because we may want to install w/ a diff name */
20 #if DoInstallGHCSystem == YES
21 MakeDirectories(install, $(INSTBINDIR_GHC) $(INSTLIBDIR_GHC))
22
23 InstallMsubbedScriptTarget(PerlCmd,ghc-v-temp-name,ghc.prl,$(INSTBINDIR_GHC))
24 /* and continuing ... */
25 install::
26         $(MV) $(INSTBINDIR_GHC)/ghc-v-temp-name $(INSTBINDIR_GHC)/$(GHC_DRIVER_INST_NAME)
27         $(RM) $(INSTBINDIR_GHC)/ghc-v-temp-name
28
29 dyn_loadable_bits : $(DYN_LOADABLE_BITS)
30
31 InstallMultNonExecTargets(dyn_loadable_bits, $(DYN_LOADABLE_BITS), $(INSTLIBDIR_GHC))
32
33 install :: install_dyn_loadable_bits
34
35 #endif /* DoInstallGHCSystem */
36
37 depend::
38         @echo make depend done in $(CURRENT_DIR)
39
40 ExtraStuffToClean( ghc.prl $(DYN_LOADABLE_BITS) )
41
42 ClearTagsFile()
43
44 DYN_LOADABLE_LPRLS = $(DYN_LOADABLE_BITS:.prl=.lprl)
45 PerlTagsTarget( ghc.lprl $(DYN_LOADABLE_LPRLS) )