--- Makefile.orig 2003-06-10 22:26:51.000000000 +0200 +++ Makefile 2014-06-04 13:39:49.442936071 +0200 @@ -5,13 +5,13 @@ # -m386 (486,pentium,pentiumpro) #OPTIMIZE=-O7 -mpentiumpro -OPTIMIZE=-O3 +#OPTIMIZE=-O3 # debug symbols will be stripped anyway during 'make install' DEBUG=-g #### DON'T CHANGE ANYTHING BELOW #### -DESTDIR=/usr/local +DESTDIR?=/usr/local CFLAGS=-Wall $(OPTIMIZE) $(DEBUG) LIBS=-lm CC=gcc @@ -37,9 +37,9 @@ $(CC) $(CFLAGS) -c mls_text.c -o mls_text.o install: mls - install -m 755 -g root -o root -s mls $(DESTDIR)/bin - install -m 644 -g root -o root mls.1 $(DESTDIR)/man/man1 - gzip -9f $(DESTDIR)/man/man1/mls.1 + $(BSD_INSTALL_PROGRAM) mls $(DESTDIR)$(PREFIX)/bin + $(BSD_INSTALL_MAN) mls.1 $(DESTDIR)$(PREFIX)/man/man1 + gzip -9f $(DESTDIR)$(PREFIX)/man/man1/mls.1 @echo "**************************************************************" @echo "*** To use HTML feature or PHP wrapper, copy contents of ***" @echo "*** 'html' subdirectory to location accessible by your ***"