Changeset View
Changeset View
Standalone View
Standalone View
mail/mls/files/patch-Makefile
--- Makefile.orig 2003-06-10 22:26:51.000000000 +0200 | --- Makefile.orig 2003-06-10 20:26:51 UTC | ||||
+++ Makefile 2014-06-04 13:39:49.442936071 +0200 | +++ Makefile | ||||
flo: I guess the "regenerate patch files" part is also meant by the "pacify portlint and portclippy"… | |||||
Done Inline ActionsNo, I generated additional patches with make makepatch which as a welcome side effect also regenerated the existing patches. fuz: No, I generated additional patches with `make makepatch` which as a welcome side effect also… | |||||
@@ -5,13 +5,13 @@ | @@ -5,13 +5,13 @@ | ||||
# -m386 (486,pentium,pentiumpro) | # -m386 (486,pentium,pentiumpro) | ||||
#OPTIMIZE=-O7 -mpentiumpro | #OPTIMIZE=-O7 -mpentiumpro | ||||
-OPTIMIZE=-O3 | -OPTIMIZE=-O3 | ||||
+#OPTIMIZE=-O3 | +#OPTIMIZE=-O3 | ||||
# debug symbols will be stripped anyway during 'make install' | # debug symbols will be stripped anyway during 'make install' | ||||
DEBUG=-g | DEBUG=-g | ||||
#### DON'T CHANGE ANYTHING BELOW #### | #### DON'T CHANGE ANYTHING BELOW #### | ||||
-DESTDIR=/usr/local | -DESTDIR=/usr/local | ||||
+DESTDIR?=/usr/local | +DESTDIR?=/usr/local | ||||
CFLAGS=-Wall $(OPTIMIZE) $(DEBUG) | CFLAGS=-Wall $(OPTIMIZE) $(DEBUG) | ||||
LIBS=-lm | LIBS=-lm | ||||
CC=gcc | CC=gcc | ||||
@@ -37,9 +37,9 @@ | @@ -37,9 +37,8 @@ mls_text.o: mls_text.c mls_text.h mls_lang.h Makefile | ||||
$(CC) $(CFLAGS) -c mls_text.c -o mls_text.o | $(CC) $(CFLAGS) -c mls_text.c -o mls_text.o | ||||
install: mls | install: mls | ||||
- install -m 755 -g root -o root -s mls $(DESTDIR)/bin | - install -m 755 -g root -o root -s mls $(DESTDIR)/bin | ||||
- install -m 644 -g root -o root mls.1 $(DESTDIR)/man/man1 | - install -m 644 -g root -o root mls.1 $(DESTDIR)/man/man1 | ||||
- gzip -9f $(DESTDIR)/man/man1/mls.1 | - gzip -9f $(DESTDIR)/man/man1/mls.1 | ||||
+ $(BSD_INSTALL_PROGRAM) mls $(DESTDIR)$(PREFIX)/bin | + $(BSD_INSTALL_PROGRAM) mls $(DESTDIR)$(PREFIX)/bin | ||||
+ $(BSD_INSTALL_MAN) mls.1 $(DESTDIR)$(PREFIX)/man/man1 | + $(BSD_INSTALL_MAN) mls.1 $(DESTDIR)$(PREFIX)/man/man1 | ||||
+ gzip -9f $(DESTDIR)$(PREFIX)/man/man1/mls.1 | |||||
@echo "**************************************************************" | @echo "**************************************************************" | ||||
@echo "*** To use HTML feature or PHP wrapper, copy contents of ***" | @echo "*** To use HTML feature or PHP wrapper, copy contents of ***" | ||||
@echo "*** 'html' subdirectory to location accessible by your ***" | @echo "*** 'html' subdirectory to location accessible by your ***" |
I guess the "regenerate patch files" part is also meant by the "pacify portlint and portclippy" line? I'd add it as a separate entry, as is often done.