--- makefile 2002-07-10 16:32:03.000000000 +0200 +++ makefile.new 2002-07-10 16:31:41.000000000 +0200 @@ -2,6 +2,24 @@ # # # Make file for installing Basser Lout Version 3.25 # # # +############################################################################### +# # +# Patched for Gentoo Linux ebuild by Christian V. J. Brüssow # +# # +# WARNING: DO NOT USE THIS MAKE FILE FOR A NORMAL MAKE, ESPECIALLY A MAKE # +# INSTALL! IT WILL NOT DO WHAT YOU EXPECT! IT RELIES HEAVILLY ON # +# GENTOO LINUX' EMERGE/EBUILD SYSTEM TO FUNCTION PROPERLY! # +# # +# Don't blame the Lout author for errors or problems you may have, when # +# using this patched make file! Instead write a mail to the guilty ;-) # +# that is: cvjb@epost.de # +# # +# DISCLAIMER: I (Christian V. J. Brüssow) do not guarantee, that this file # +# will not damage your system (software, hardware, data in any form). You # +# will use it at your own risk. # +# # +############################################################################### +# # # Jeffrey H. Kingston # # 24 Secember 2001 # # # @@ -270,16 +288,16 @@ USESTAT = 1 SAFEDFT = 0 -# DEBUGGING = 0 -# TRACING = +DEBUGGING = 0 +TRACING = -DEBUGGING = 1 -TRACING = -g +# DEBUGGING = 1 +# TRACING = -g -BINDIR = /usr/staff/jeff/bin -LIBDIR = /usr/staff/jeff/lout.lib -DOCDIR = /usr/staff/jeff/lout.doc -MANDIR = /usr/staff/jeff/lout.man +BINDIR = /usr/bin +LIBDIR = /usr/lib/lout +DOCDIR = /usr/share/doc/lout-3.25-r1 +MANDIR = /usr/share/man/man1 LIBFONT = font LIBMAPS = maps @@ -297,9 +315,9 @@ COLLATE = 1 -PDF_COMPRESSION = 0 -ZLIB = -ZLIBPATH = +PDF_COMPRESSION = 1 +ZLIB = /usr/lib/libz.a +ZLIBPATH = -I/usr/include/ CC = gcc @@ -353,92 +371,98 @@ install: lout prg2lout @echo "" - @echo "(a) Installing lout and prg2lout binaries into BINDIR $(BINDIR)" - cp lout $(BINDIR)/lout - chmod 755 $(BINDIR)/lout - cp prg2lout $(BINDIR)/prg2lout - chmod 755 $(BINDIR)/prg2lout - @echo "" - @echo "(b) Installing library files into LIBDIR $(LIBDIR)" - mkdir $(LIBDIR) - chmod 755 $(LIBDIR) - @echo "" - mkdir $(LIBDIR)/$(LIBINCL) - chmod 755 $(LIBDIR)/$(LIBINCL) - cp include/* $(LIBDIR)/$(LIBINCL) - chmod 644 $(LIBDIR)/$(LIBINCL)/* - @echo "" - mkdir $(LIBDIR)/$(LIBDATA) - chmod 755 $(LIBDIR)/$(LIBDATA) - cp data/* $(LIBDIR)/$(LIBDATA) - chmod 644 $(LIBDIR)/$(LIBDATA)/* - @echo "" - mkdir $(LIBDIR)/$(LIBHYPH) - chmod 755 $(LIBDIR)/$(LIBHYPH) - cp hyph/* $(LIBDIR)/$(LIBHYPH) - chmod 644 $(LIBDIR)/$(LIBHYPH)/* - @echo "" - mkdir $(LIBDIR)/$(LIBFONT) - chmod 755 $(LIBDIR)/$(LIBFONT) - cp font/* $(LIBDIR)/$(LIBFONT) - chmod 644 $(LIBDIR)/$(LIBFONT)/* - @echo "" - mkdir $(LIBDIR)/$(LIBMAPS) - chmod 755 $(LIBDIR)/$(LIBMAPS) - cp maps/* $(LIBDIR)/$(LIBMAPS) - chmod 644 $(LIBDIR)/$(LIBMAPS)/* - @echo "" - mkdir $(LIBDIR)/$(LIBLOCA) - chmod 755 $(LIBDIR)/$(LIBLOCA) - @echo "" - @echo "(c) Initializing run (should be silent, no errors expected)" - $(BINDIR)/lout -x -s $(LIBDIR)/$(LIBINCL)/init - @echo "" - @echo "(d) Changing mode of files just created by initializing run" - chmod 644 $(LIBDIR)/$(LIBDATA)/* - chmod 644 $(LIBDIR)/$(LIBHYPH)/* + @echo "(a) Installing lout and prg2lout binaries into BINDIR $(DESTDIR)/$(BINDIR)" + strip lout + strip prg2lout + mkdir -p $(DESTDIR)/$(BINDIR) + cp lout $(DESTDIR)/$(BINDIR)/lout + chmod 755 $(DESTDIR)/$(BINDIR)/lout + cp prg2lout $(DESTDIR)/$(BINDIR)/prg2lout + chmod 755 $(DESTDIR)/$(BINDIR)/prg2lout + @echo "" + @echo "(b) Installing library files into LIBDIR $(DESTDIR)/$(LIBDIR)" + mkdir -p $(DESTDIR)/$(LIBDIR) + chmod 755 $(DESTDIR)/$(LIBDIR) + @echo "" + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBINCL) + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBINCL) + cp include/* $(DESTDIR)/$(LIBDIR)/$(LIBINCL) + chmod 644 $(DESTDIR)/$(LIBDIR)/$(LIBINCL)/* + @echo "" + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBDATA) + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBDATA) + cp data/* $(DESTDIR)/$(LIBDIR)/$(LIBDATA) + chmod 644 $(DESTDIR)/$(LIBDIR)/$(LIBDATA)/* + @echo "" + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBHYPH) + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBHYPH) + cp hyph/* $(DESTDIR)/$(LIBDIR)/$(LIBHYPH) + chmod 644 $(DESTDIR)/$(LIBDIR)/$(LIBHYPH)/* + @echo "" + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBFONT) + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBFONT) + cp font/* $(DESTDIR)/$(LIBDIR)/$(LIBFONT) + chmod 644 $(DESTDIR)/$(LIBDIR)/$(LIBFONT)/* + @echo "" + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBMAPS) + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBMAPS) + cp maps/* $(DESTDIR)/$(LIBDIR)/$(LIBMAPS) + chmod 644 $(DESTDIR)/$(LIBDIR)/$(LIBMAPS)/* + @echo "" + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBLOCA) + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBLOCA) +# @echo "" +# @echo "(c) Initializing run (should be silent, no errors expected)" +# $(DESTDIR)/$(BINDIR)/lout -x -s $(DESTDIR)/$(LIBDIR)/$(LIBINCL)/init +# @echo "" +# @echo "(d) Changing mode of files just created by initializing run" +# chmod 644 $(DESTDIR)/$(LIBDIR)/$(LIBDATA)/* +# chmod 644 $(DESTDIR)/$(LIBDIR)/$(LIBHYPH)/* installman: @echo "" - @echo "Installing manual entries into MANDIR $(MANDIR)" - sed -e "s@@$(BINDIR)@" -e "s@@$(LIBDIR)@" \ - -e "s@@$(DOCDIR)@" -e "s@@$(MANDIR)@" \ - man/lout.1 > $(MANDIR)/lout.1 - chmod 644 $(MANDIR)/lout.1 - cp man/prg2lout.1 $(MANDIR)/prg2lout.1 - chmod 644 $(MANDIR)/prg2lout.1 + @echo "Installing manual entries into MANDIR $(DESTDIR)/$(MANDIR)" + mkdir -p $(DESTDIR)/$(MANDIR) + sed -e "s@@$(DESTDIR)/$(BINDIR)@" -e "s@@$(DESTDIR)/$(LIBDIR)@" \ + -e "s@@$(DESTDIR)/$(DOCDIR)@" -e "s@@$(DESTDIR)/$(MANDIR)@" \ + man/lout.1 > $(DESTDIR)/$(MANDIR)/lout.1 + chmod 644 $(DESTDIR)/$(MANDIR)/lout.1 + cp man/prg2lout.1 $(DESTDIR)/$(MANDIR)/prg2lout.1 + chmod 644 $(DESTDIR)/$(MANDIR)/prg2lout.1 installdoc: @echo "" - @echo "Creating DOCDIR $(DOCDIR) and copying documentation into it" - $(RCOPY) doc $(DOCDIR) - chmod 755 $(DOCDIR) - chmod 755 $(DOCDIR)/* - chmod 644 $(DOCDIR)/*/* + @echo "Creating DOCDIR $(DESTDIR)/$(DOCDIR) and copying documentation into it" + mkdir -p $(DESTDIR)/$(DOCDIR) + chmod 755 $(DESTDIR)/$(DOCDIR) + $(RCOPY) doc $(DESTDIR)/$(DOCDIR) + chmod 755 $(DESTDIR)/$(DOCDIR)/doc + chmod 755 $(DESTDIR)/$(DOCDIR)/doc/* + chmod 644 $(DESTDIR)/$(DOCDIR)/doc/README installfr: @echo "" - @echo "Putting French error messages into $(LIBDIR)/$(LIBLOCA)/$(LOC_FR)" - mkdir $(LIBDIR)/$(LIBLOCA)/$(LOC_FR) - chmod 755 $(LIBDIR)/$(LIBLOCA)/$(LOC_FR) - mkdir $(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES - chmod 755 $(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES - cp locale/msgs.fr $(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/msgs.$(LOC_FR) - gencat $(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/errors.$(LOC_FR) \ - $(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/msgs.$(LOC_FR) - chmod 644 $(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/* + @echo "Putting French error messages into $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_FR)" + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_FR) + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_FR) + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES + cp locale/msgs.fr $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/msgs.$(LOC_FR) + gencat $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/errors.$(LOC_FR) \ + $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/msgs.$(LOC_FR) + chmod 644 $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_FR)/LC_MESSAGES/* installde: @echo "" - @echo "Putting German error messages into $(LIBDIR)/$(LIBLOCA)/$(LOC_DE)" - mkdir $(LIBDIR)/$(LIBLOCA)/$(LOC_DE) - chmod 755 $(LIBDIR)/$(LIBLOCA)/$(LOC_DE) - mkdir $(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES - chmod 755 $(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES - cp locale/msgs.de $(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/msgs.$(LOC_DE) - gencat $(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/errors.$(LOC_DE) \ - $(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/msgs.$(LOC_DE) - chmod 644 $(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/* + @echo "Putting German error messages into $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_DE)" + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_DE) + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_DE) + mkdir -p $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES + chmod 755 $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES + cp locale/msgs.de $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/msgs.$(LOC_DE) + gencat $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/errors.$(LOC_DE) \ + $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/msgs.$(LOC_DE) + chmod 644 $(DESTDIR)/$(LIBDIR)/$(LIBLOCA)/$(LOC_DE)/LC_MESSAGES/* uninstall: -rm -f $(BINDIR)/lout $(BINDIR)/prg2lout