Ticket #35427: patch-Makefile.diff

File patch-Makefile.diff, 1001 bytes (added by gregori.emiliano@…, 12 years ago)
  • Makefile

    old new  
    1717#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
    1818
    1919
    20 MAN=man
    21 
    2220CC= gcc
    2321CFLAGS= -O6 -fomit-frame-pointer -Wall -pipe
    2422# CFLAGS= -g -fomit-frame-pointer -Wall -pipe
     
    2624# Look where your install program is
    2725#
    2826INSTALL = /usr/bin/install
    29 prefix = /usr
     27prefix = /opt/local
    3028bindir = $(prefix)/bin
    31 mandir = $(prefix)/share/$(MAN)
     29mandir = $(prefix)/share/man
    3230
    3331obj = db_dump.o dbview.o version.o
    3432
     
    4442        makedepend *.c
    4543
    4644install: all
    47         $(INSTALL) -d -o root -g root -m 755 $(bindir)
    48         $(INSTALL) -s -o root -g root -m 755 dbview $(bindir)
    49         $(INSTALL) -d -o $(MAN) -g $(MAN) -m 755 $(mandir)/man1
    50         $(INSTALL) -o $(MAN) -g $(MAN) -m 644 dbview.1 $(mandir)/man1
     45        $(INSTALL) -m 755 dbview $(DESTDIR)$(bindir)
     46        $(INSTALL) -m 644 dbview.1 $(DESTDIR)$(mandir)/man1
    5147
    5248clean:
    5349        rm -f dbview *.o *.log *~ *.orig Makefile.bak;