]> git.ozlabs.org Git - ppp.git/blobdiff - chat/Makefile.linux
Add installcheck targets to keep the autobuilder happy
[ppp.git] / chat / Makefile.linux
index 6568cbb77f4cc4ef8215eb10ba1fa8ceab70a705..31a567628f91cbe2bd5d9dd628f7c84c63fe2a51 100644 (file)
@@ -1,4 +1,8 @@
-#      $Id: Makefile.linux,v 1.9 1999/08/13 01:54:32 paulus Exp $
+#      $Id: Makefile.linux,v 1.12 2004/10/31 21:27:24 paulus Exp $
+
+DESTDIR = @DESTDIR@
+BINDIR = $(DESTDIR)/sbin
+MANDIR = $(DESTDIR)/share/man/man8
 
 CDEF1= -DTERMIOS                       # Use the termios structure
 CDEF2= -DSIGTYPE=void                  # Standard definition
@@ -6,7 +10,8 @@ CDEF3= -UNO_SLEEP                      # Use the usleep function
 CDEF4= -DFNDELAY=O_NDELAY              # Old name value
 CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
 
-CFLAGS=        -O2 -g -pipe $(CDEFS)
+COPTS= -O2 -g -pipe $(CDEFS)
+CFLAGS=        $(COPTS) $(CDEFS)
 
 INSTALL= install
 
@@ -21,7 +26,7 @@ chat.o:       chat.c
 install: chat
        mkdir -p $(BINDIR)
        $(INSTALL) -s -c chat $(BINDIR)
-       $(INSTALL) -c -m 644 chat.8 $(MANDIR)/man8
+       $(INSTALL) -c -m 644 chat.8 $(MANDIR)
 
 clean:
        rm -f chat.o chat *~