$NetBSD: patch-aa,v 1.1.1.1 2001/08/13 20:11:46 nra Exp $ --- Makefile.orig Sat Jun 17 14:26:22 2000 +++ Makefile @@ -1,10 +1,22 @@ # Makefile for cidr # 5/9/2000 +INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM) +INSTALL_MAN = $(BSD_INSTALL_MAN) + +BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/man/man1 + OBJS = cidr.o +all: cidr + cidr: $(OBJS) - gcc -Wall -o cidr cidr.c + $(CC) $(CFLAGS) -o cidr $(OBJS) clean: rm $(OBJS) cidr + +install: cidr + $(INSTALL_PROGRAM) cidr $(DESTDIR)$(BINDIR) + $(INSTALL_MAN) cidr.1 $(DESTDIR)$(MANDIR)