1 # Instructions for configuring an fptools package.
3 # There are two ways you can get started with an fptools package, either
4 # by using the unpacked distribution tree in-situ or by installing the
7 # Using the package directly is easy, just do `make config', i.e.,
8 # the distribution will *not* work out-of-the-box, you'll have to do
11 # To install the package, you'll have to set one or more of the
12 # following variables:
15 # path to directory of where you want the executables
18 # where you want the library archives to go.
19 # Note, if you specify /usr/foo/lib for libdir,
20 # the library files for your fptools package will be
21 # installed in /usr/foo/lib/<package>-<version>, i.e.,
22 # /usr/foo/lib/ghc-2.02. If you don't want the package/version
23 # directory appended, you'll have to modify $(real_libdir)
27 # path to where the platform-independent files will go.
28 # As for libdir, the effective path for the platform-indep
29 # stuff is $(datadir)/<package>-<version>. If you want
30 # complete control, see $(real_libdir)
33 # the platform you're installing for. The configure
34 # makes an educated guess what it, so you will only
35 # have to set this if it clashes with your reality.
38 # where to install the Emacs info files
40 # where to install the documentation HTML files.
42 # where to install the DVI files.
44 # Installing the documentation is not via the `install' rule, but
45 # via the rules: `install-docs', `install-html', `install-dvi'
48 # For more complete instructions, consult the INSTALL file
49 # that came with the bundle, and/or consult the installation
50 # documentation in one of the document directories.
62 # Putting the package stuff in package-specific
65 real_libdir = $(libdir)/$(package)-$(version)
66 real_datadir = $(datadir)/$(package)-$(version)
75 .PHONY: config install install-dirs
78 @echo Configuring $(package), version $(version), on $(platform)
79 @RM `pwd`/bin/$(platform)/$(package)-$(version)/$(package)-$(version)
80 @RM `pwd`/bin/$(platform)/$(package)-$(version)/$(package)
81 @echo $(PerlCmd) > `pwd`/bin/$(platform)/$(package)
82 @echo "$""bindir='"`pwd`"/bin/$(platform)/$(package)-$(version)';" >> `pwd`/bin/$(platform)/$(package)-$(version)/$(package)
83 @echo "$""libdir='"`pwd`"/lib/$(platform)/$(package)-$(version)';" >> `pwd`/bin/$(platform)/$(package)-$(version)/$(package)
84 @echo "$""datadir='"`pwd`"/share/$(platform)/$(package)-$(version)';" >> `pwd`/bin/$(platform)/$(package)-$(version)/$(package)
85 @cat `pwd`/bin/$(platform)/$(package)-$(version)/$(package).prl';" >> `pwd`/bin/$(platform)/$(package)-$(version)/$(package)
86 @(cd `pwd`/bin/$(platform)/$(package)-$(version); $(LN_S) $(package) $(package)-$(version) )
87 @echo Finished..to use, add `pwd`/bin/$(platform)/$(package)-$(version) to your PATH.
89 libdirs = . imports include
93 $(MKDIRHIER) $(bindir)
94 @for i in $(libdirs) ; do \
95 echo (MKDIRHIER) $(real_libdir)/$$i; \
96 (MKDIRHIER) $(real_libdir)/$$i; \
98 @for i in $(datadirs) ; do \
99 echo (MKDIRHIER) $(real_datadir)/$$i; \
100 (MKDIRHIER) $(real_datadir)/$$i; \
103 install : install-dirs
106 $(INSTALL_PROGRAM) `pwd`/bin/$(platform)/$(package)-$(version)/* $(bindir)
107 @for i in $(libdirs); do \
108 echo $(INSTALL) `pwd`/lib/$(platform)/$(package)-$(version)/$$i/* $(real_libdir)/$$i; \
109 $(INSTALL) `pwd`/lib/$(platform)/$(package)-$(version)/$$i/* $(real_libdir)/$$i; \
111 @for i in $(datadirs); do \
112 echo $(INSTALL) `pwd`/share/$(package)-$(version)/$$i/* $(real_datadir)/$$i; \
113 $(INSTALL) `pwd`/share/$(package)-$(version)/$$i/* $(real_datadir)/$$i; \
116 install-docs : install-info install-html install-dvi
119 $(MKDIRHIER) $(htmldir)
122 $(MKDIRHIER) $(infodir)
125 $(MKDIRHIER) $(dvidir)
127 install-docs : install-html install-info install-dvi
129 install-dvi: install-dirs-dvi
130 $(INSTALL) `pwd`/dvi/$(package)-$(version)/* $(dvidir)
132 install-info: install-dirs-info
133 $(INSTALL) `pwd`/info/$(package)-$(version)/* $(infodir)
135 install-html: install-dirs-html
136 $(INSTALL) `pwd`/html/$(package)-$(version)/* $(htmldir)