Ticket #45484: patch-Makefile.diff

File patch-Makefile.diff, 1.3 KB (added by jpo@…, 10 years ago)
  • Makefile

    old new  
    3636
    3737CFLAGS          += -g -DHAVE_CONFIG_H
    3838CFLAGS          += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
    39 PREFIX           = /usr/local
     39PREFIX           = @PREFIX@
    4040BINDIR           = $(PREFIX)/bin
    4141INCLUDEDIR       = $(PREFIX)/include/mandoc
    4242LIBDIR           = $(PREFIX)/lib/mandoc
    43 MANDIR           = $(PREFIX)/man
     43MANDIR           = $(PREFIX)/share/man
    4444EXAMPLEDIR       = $(PREFIX)/share/examples/mandoc
    4545
    4646INSTALL          = install
     
    6767# system that's not OpenBSD or NetBSD.  If uncommented, apropos(1)
    6868# and makewhatis(8) will use manpath(1) to get the MANPATH variable.
    6969#
    70 #CFLAGS         += -DUSE_MANPATH
     70CFLAGS          += -DUSE_MANPATH
    7171
    7272# On some systems, SQLite3 may be installed below /usr/local.
    7373# In that case, uncomment the following two lines.
    7474#
    75 #CFLAGS         += -I/usr/local/include
    76 #DBLIB          += -L/usr/local/lib
     75CFLAGS          += -I$(PREFIX)/include
     76DBLIB           += -L$(PREFIX)/lib
    7777
    7878# OpenBSD has the ohash functions in libutil.
    7979# Comment the following line if your system doesn't.
    8080#
    81 DBLIB           += -lutil
     81#DBLIB          += -lutil
    8282
    8383SBINDIR          = $(PREFIX)/sbin
    8484
     
    9797# If your system does not support static binaries, comment this,
    9898# for example on Mac OS X.
    9999#
    100 STATIC           = -static
     100#STATIC          = -static
    101101
    102102# Linux requires -pthread for statical linking.
    103103#