$NetBSD: patch-ab,v 1.1.1.1 2006/04/12 17:14:35 minskim Exp $ --- Makefile.orig 2003-02-25 22:21:15.000000000 +0100 +++ Makefile @@ -5,7 +5,7 @@ PROG = ratmen -PREFIX=/usr/local +#PREFIX=/usr/local MANDIR=$(PREFIX)/man OPTIMIZE ?= -Os @@ -13,11 +13,11 @@ DEBUG ?= WARN ?= -Wall -ansi -pedantic CC = gcc -LIBS = -L/usr/X11R6/lib -lX11 +LIBS = -lX11 CFLAGS = $(OPTIMIZE) $(WARN) $(DEBUG) $(PROG): $(PROG).c - $(CC) $(CFLAGS) $< $(LIBS) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@ clean: debian/rules clean @@ -35,5 +35,5 @@ doc: groff -Tascii -man ratmen.1|less install: $(PROG) - install -D -p -m 755 -s $(PROG) $(PREFIX)/bin/$(PROG) - install -D -p -m 755 $(PROG).1 $(MANDIR)/man1/$(PROG).1 + $(BSD_INSTALL_PROGRAM_DIR) $(PREFIX)/bin + $(BSD_INSTALL_PROGRAM) $(PROG) $(PREFIX)/bin