X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=distrib%2FMakefile-bin.in;h=d2dbe160815de0b7c5931771398a37ef05b4b27f;hb=8a9bb01780e4bb9818b3bf52613ff8ebecdef006;hp=8db743eae3d6fa9f9187b6ad0b4fef4b13b55a4c;hpb=ed33437cbfa526dbf8deec324d1bb75115931b51;p=ghc-hetmet.git diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index 8db743e..d2dbe16 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -22,7 +22,7 @@ # Note, if you specify /usr/foo/lib for libdir, # the library files for your fptools package will be # installed in /usr/foo/lib/-, e.g., -# /usr/foo/lib/ghc-2.03. If you don't want the package/version +# /usr/foo/lib/ghc-2.07. If you don't want the package/version # directory appended, you'll have to modify $(real_libdir) # below. # @@ -78,8 +78,9 @@ real_libdir = $(libdir)/$(package)-$(version) real_datadir = $(datadir)/$(package)-$(version) package = ghc -version = 2.03 +version = 2.08 PERL = @PerlCmd@ +SH = /bin/sh RM = rm -f MV = mv CP = cp @@ -101,10 +102,11 @@ VERSION_SYMLINKS_FOR=ghc # local setup/install information prepended. # PACKAGE_SCRIPTS=ghc stat2resid hstags mkdependHS -PACKAGE_LIBSCRIPTS=hscpp +PACKAGE_SH_SCRIPTS=happy +PACKAGE_LIB_SCRIPTS=hscpp # Binaries to install -PACKAGE_BINS=$(PACKAGE_SCRIPTS) hp2ps +PACKAGE_BINS=$(PACKAGE_SCRIPTS) $(PACKAGE_SH_SCRIPTS) hp2ps #----------end of user-serviceable parts------------ # @@ -134,7 +136,7 @@ config-pkgs :: echo "Creating a configured version of $$i .."; \ $(RM) bin/$(platform)/$(package)-$(version)/$$i.bak; \ test -f bin/$(platform)/$(package)-$(version)/$$i && $(MV) bin/$(platform)/$(package)-$(version)/$$i bin/$(platform)/$(package)-$(version)/$$i.bak; \ - echo "#! $(PERL)" > $$i.tmp ; > bin/$(platform)/$(package)-$(version)/$$i ; \ + echo "#! $(PERL)" > bin/$(platform)/$(package)-$(version)/$$i ; \ echo $$"bindir='$(bindir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ echo $$"libdir='$(real_libdir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ echo $$"libexecdir='$(real_libdir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ @@ -156,6 +158,19 @@ config-pkgs :: $(CHMOD) $(BIN_PERMS) lib/$(platform)/$(package)-$(version)/$$i; \ echo "Done."; \ done + @for i in $(PACKAGE_SH_SCRIPTS); do \ + echo "Creating a configured version of $$i .."; \ + $(RM) bin/$(platform)/$(package)-$(version)/$$i.bak; \ + test -f bin/$(platform)/$(package)-$(version)/$$i && $(MV) bin/$(platform)/$(package)-$(version)/$$i bin/$(platform)/$(package)-$(version)/$$i.bak; \ + echo "#! $(SH)" > bin/$(platform)/$(package)-$(version)/$$i ; \ + echo "bindir='$(bindir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ + echo "libdir='$(real_libdir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ + echo "libexecdir='$(real_libdir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ + echo "datadir='$(real_datadir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ + cat bin/$(platform)/$(package)-$(version)/$$i.sh >> bin/$(platform)/$(package)-$(version)/$$i; \ + $(CHMOD) $(BIN_PERMS) bin/$(platform)/$(package)-$(version)/$$i; \ + echo "Done."; \ + done mk-version-symlinks ::