gkermit (1.0-9) makefile

Summary

 makefile |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

    
download this patch

Patch contents

--- gkermit-1.0.orig/makefile
+++ gkermit-1.0/makefile
@@ -28,17 +28,22 @@
 # See README and COPYING for further information.
 
 # Sample installation values - change or override as needed.
+prefix = /usr/local
 
-BINDIR = /usr/local/bin
-MANDIR = /usr/man/manl
-TEXTDIR = /usr/local/doc
-INFODIR = /usr/local/info
-MANEXT = l
+BINDIR = ${prefix}/bin
+MANDIR = ${prefix}/share/man/man1
+TEXTDIR = ${prefix}/share/doc/gkermit
+INFODIR = ${prefix}/share/info
+MANEXT = 1
 
 # Default compiler and flags
 
 CC=cc
-CFLAGS= -DPOSIX -O $(KFLAGS)
+CFLAGS= -Wall -DPOSIX -O $(KFLAGS)
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -g
+endif
 
 # Object files
 
@@ -94,7 +99,7 @@
 		cc -o gkermit $(OBJECTS)
 
 clean:
-		rm -f $(OBJECTS) gproto.o gproto.c gwart.o gwart
+		rm -f $(OBJECTS) gproto.o gwart.o gwart gkermit
 
 install:
 		@if test -f ./gkermit; then \