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 1 1 # $Id: Makefile,v 1.113 2005/01/30 02:14:14 prahl Exp $ 2 2 3 CC=gcc3 #CC=gcc 4 4 MKDIR=mkdir -p 5 5 TAR=gnutar 6 6 RM=rm … … 17 17 #PREFIX_DRIVE=c: 18 18 19 19 #Uncomment next line when using gcc compiler, target linux 20 LINK_FLAGS = -lm20 #LINK_FLAGS = -lm 21 21 22 22 #Uncomment next line when using rsx compiler, target win32 23 23 #CFLAGS:=$(CFLAGS) -Zwin32 24 24 25 25 #Base directory - adapt as needed 26 PREFIX=$(PREFIX_DRIVE)/usr/local26 #PREFIX=$(PREFIX_DRIVE)/usr/local 27 27 28 28 #Name of executable binary --- beware of 8.3 restriction under DOS 29 29 BINARY_NAME=latex2rtf$(EXE_SUFFIX) 30 30 31 31 # Location of binary, man, info, and support files - adapt as needed 32 32 BIN_INSTALL=$(PREFIX)/bin 33 MAN_INSTALL=$(PREFIX)/ man/man134 INFO_INSTALL=$(PREFIX)/ info33 MAN_INSTALL=$(PREFIX)/share/man/man1 34 INFO_INSTALL=$(PREFIX)/share/info 35 35 SUPPORT_INSTALL=$(PREFIX)/share/latex2rtf 36 36 CFG_INSTALL=$(PREFIX)/share/latex2rtf/cfg … … 132 132 test/bib_apacite2.bib test/fig_subfig.tex test/include4.tex \ 133 133 test/include5.tex test/hyperref.tex test/bib_super.bib \ 134 134 test/longstack.tex 135 135 136 136 OBJS=fonts.o direct.o encodings.o commands.o stack.o funct1.o tables.o \ 137 137 chars.o ignore.o cfg.o main.o utils.o parser.o lengths.o counters.o \ 138 138 preamble.o letterformat.o equations.o convert.o xrefs.o definitions.o graphics.o \ … … 153 153 cd scripts && $(MAKE) 154 154 cd test && $(MAKE) 155 155 cd test && $(MAKE) check 156 156 157 157 fullcheck: latex2rtf 158 158 cd scripts && $(MAKE) 159 159 cd test && $(MAKE) clean … … 203 203 204 204 install: latex2rtf doc/latex2rtf.1 $(CFGS) scripts/latex2png 205 205 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) 217 217 @echo "******************************************************************" 218 218 @echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\"" 219 219 @echo "*** in directory \"$(BIN_INSTALL)\"" … … 230 230 @echo "******************************************************************" 231 231 232 232 install-info: doc/latex2rtf.info 233 $(MKDIR) $( INFO_INSTALL)234 cp doc/latex2rtf.info $( INFO_INSTALL)235 install-info --info-dir=$( INFO_INSTALL) doc/latex2rtf.info233 $(MKDIR) $(DESTDIR)$(INFO_INSTALL) 234 cp doc/latex2rtf.info $(DESTDIR)$(INFO_INSTALL) 235 install-info --info-dir=$(DESTDIR)$(INFO_INSTALL) doc/latex2rtf.info 236 236 237 237 realclean: checkdir clean 238 238 $(RM) -f makefile.depend latex2rtf-$(VERSION).tar.gz … … 262 262 cp macosx/License.rtf $(PKG_RESOURCES) 263 263 cp macosx/ReadMe.html $(PKG_RESOURCES) 264 264 cp macosx/Welcome.html $(PKG_RESOURCES) 265 265 266 266 -$(PKG_MAKER) -build -p $(PKG_NAME) -r $(PKG_RESOURCES) -f $(PKG_CONTENTS) 267 267 mkdmg $(DMG_DIR) 268 268 269 269 $(RM) -rf $(PKG_DIR) 270 270 271 271 mkdmg 272 273 274 272 273 274 275 275 .PHONY: all check checkdir clean depend dist doc install install_info realclean latex2rtf uptodate releasedate splint fullcheck 276 276 277 277 # created using "make depend"