--- procinfo-18/Makefile 2001-02-25 00:29:53.000000000 +0100 +++ procinfo-18-fix/Makefile 2005-09-13 10:26:41.000000000 +0200 @@ -1,10 +1,12 @@ ### Makefile for procinfo. prefix=/usr +bindir=$(prefix)/bin +mandir=$(prefix)/share/man CC = gcc -Wall -Wstrict-prototypes -CFLAGS = -O2 +CFLAGS = $(RPM_OPT_FLAGS) LDFLAGS = -s # If you get lots of `undefined references', you probably need -lncurses @@ -32,14 +34,14 @@ procinfo: procinfo.o routines.o install: procinfo procinfo.8 lsdev.pl socklist.pl lsdev.8 - -mkdir -p $(prefix)/bin - install procinfo $(prefix)/bin/procinfo - install lsdev.pl $(prefix)/bin/lsdev - install socklist.pl $(prefix)/bin/socklist - -mkdir -p $(prefix)/man/man8 - install -m 644 procinfo.8 $(prefix)/man/man8/procinfo.8 - install -m 644 lsdev.8 $(prefix)/man/man8/lsdev.8 - install -m 644 socklist.8 $(prefix)/man/man8/socklist.8 + -mkdir -p $(bindir) + install -m 755 procinfo $(bindir)/procinfo + install -m 755 lsdev.pl $(bindir)/lsdev + install -m 755 socklist.pl $(bindir)/socklist + -mkdir -p $(mandir)/man8 + install -m 644 procinfo.8 $(mandir)/man8/procinfo.8 + install -m 644 lsdev.8 $(mandir)/man8/lsdev.8 + install -m 644 socklist.8 $(mandir)/man8/socklist.8 clean: rm -f procinfo procinfo.0 *.o *~ out