Ticket #14604: patch-Makefile.diff

File patch-Makefile.diff, 3.7 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago)
  • Makefile

    old new  
    11# $Id: Makefile,v 1.113 2005/01/30 02:14:14 prahl Exp $
    22
    3 CC=gcc
     3#CC=gcc
    44MKDIR=mkdir -p
    55TAR=gnutar
    66RM=rm
     
    1717#PREFIX_DRIVE=c:
    1818
    1919#Uncomment next line when using gcc compiler, target linux
    20 LINK_FLAGS = -lm
     20#LINK_FLAGS = -lm
    2121
    2222#Uncomment next line when using rsx compiler, target win32
    2323#CFLAGS:=$(CFLAGS) -Zwin32 
    2424
    2525#Base directory - adapt as needed
    26 PREFIX=$(PREFIX_DRIVE)/usr/local
     26#PREFIX=$(PREFIX_DRIVE)/usr/local
    2727
    2828#Name of executable binary --- beware of 8.3 restriction under DOS
    2929BINARY_NAME=latex2rtf$(EXE_SUFFIX)
    3030
    3131# Location of binary, man, info, and support files - adapt as needed
    3232BIN_INSTALL=$(PREFIX)/bin
    33 MAN_INSTALL=$(PREFIX)/man/man1
    34 INFO_INSTALL=$(PREFIX)/info
     33MAN_INSTALL=$(PREFIX)/share/man/man1
     34INFO_INSTALL=$(PREFIX)/share/info
    3535SUPPORT_INSTALL=$(PREFIX)/share/latex2rtf
    3636CFG_INSTALL=$(PREFIX)/share/latex2rtf/cfg
     
    132132        test/bib_apacite2.bib        test/fig_subfig.tex     test/include4.tex      \
    133133        test/include5.tex            test/hyperref.tex       test/bib_super.bib     \
    134134        test/longstack.tex
    135        
     135
    136136OBJS=fonts.o direct.o encodings.o commands.o stack.o funct1.o tables.o \
    137137        chars.o ignore.o cfg.o main.o utils.o parser.o lengths.o counters.o \
    138138        preamble.o letterformat.o equations.o convert.o xrefs.o definitions.o graphics.o \
     
    153153        cd scripts && $(MAKE)
    154154        cd test && $(MAKE)
    155155        cd test && $(MAKE) check
    156        
     156
    157157fullcheck: latex2rtf
    158158        cd scripts && $(MAKE)
    159159        cd test && $(MAKE) clean
     
    203203
    204204install: latex2rtf doc/latex2rtf.1 $(CFGS) scripts/latex2png
    205205        cd doc && $(MAKE)
    206         $(MKDIR) $(BIN_INSTALL)
    207         $(MKDIR) $(MAN_INSTALL)
    208         $(MKDIR) $(CFG_INSTALL)
    209         cp $(BINARY_NAME)     $(BIN_INSTALL)
    210         cp scripts/latex2png  $(BIN_INSTALL)
    211         cp doc/latex2rtf.1    $(MAN_INSTALL)
    212         cp doc/latex2png.1    $(MAN_INSTALL)
    213         cp $(CFGS)            $(CFG_INSTALL)
    214         cp doc/latex2rtf.html $(SUPPORT_INSTALL)
    215         cp doc/latex2rtf.pdf  $(SUPPORT_INSTALL)
    216         cp doc/latex2rtf.txt  $(SUPPORT_INSTALL)
     206        $(MKDIR) $(DESTDIR)$(BIN_INSTALL)
     207        $(MKDIR) $(DESTDIR)$(MAN_INSTALL)
     208        $(MKDIR) $(DESTDIR)$(CFG_INSTALL)
     209        cp $(BINARY_NAME)     $(DESTDIR)$(BIN_INSTALL)
     210        cp scripts/latex2png  $(DESTDIR)$(BIN_INSTALL)
     211        cp doc/latex2rtf.1    $(DESTDIR)$(MAN_INSTALL)
     212        cp doc/latex2png.1    $(DESTDIR)$(MAN_INSTALL)
     213        cp $(CFGS)            $(DESTDIR)$(CFG_INSTALL)
     214        cp doc/latex2rtf.html $(DESTDIR)$(SUPPORT_INSTALL)
     215        cp doc/latex2rtf.pdf  $(DESTDIR)$(SUPPORT_INSTALL)
     216        cp doc/latex2rtf.txt  $(DESTDIR)$(SUPPORT_INSTALL)
    217217        @echo "******************************************************************"
    218218        @echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
    219219        @echo "*** in directory \"$(BIN_INSTALL)\""
     
    230230        @echo "******************************************************************"
    231231
    232232install-info: doc/latex2rtf.info
    233         $(MKDIR) $(INFO_INSTALL)
    234         cp doc/latex2rtf.info $(INFO_INSTALL)
    235         install-info --info-dir=$(INFO_INSTALL) doc/latex2rtf.info
     233        $(MKDIR) $(DESTDIR)$(INFO_INSTALL)
     234        cp doc/latex2rtf.info $(DESTDIR)$(INFO_INSTALL)
     235        install-info --info-dir=$(DESTDIR)$(INFO_INSTALL) doc/latex2rtf.info
    236236
    237237realclean: checkdir clean
    238238        $(RM) -f makefile.depend latex2rtf-$(VERSION).tar.gz
     
    262262        cp macosx/License.rtf $(PKG_RESOURCES)
    263263        cp macosx/ReadMe.html $(PKG_RESOURCES)
    264264        cp macosx/Welcome.html $(PKG_RESOURCES)
    265        
     265
    266266        -$(PKG_MAKER) -build -p $(PKG_NAME) -r $(PKG_RESOURCES) -f $(PKG_CONTENTS)
    267267        mkdmg $(DMG_DIR)
    268        
     268
    269269        $(RM) -rf $(PKG_DIR)
    270        
     270
    271271        mkdmg
    272        
    273        
    274        
     272
     273
     274
    275275.PHONY: all check checkdir clean depend dist doc install install_info realclean latex2rtf uptodate releasedate splint fullcheck
    276276
    277277# created using "make depend"