# Makefile for news	intruder@link.hacktic.nl
#
#

# dir where the news will reside
NEWSDIR =/var/sysnews
# file in $HOME which indicates the last time news was read
NEWSTIME=.news_time

PREFIX	=/usr/local
CFLAGS	=-Wall -O6 -m486 -DNEWSDIR=\"$(NEWSDIR)\" -DNEWSTIME=\"$(NEWSTIME)\"
LDFLAGS =-s -N
CC	=gcc

all:	 news manpage

news:	 news.o

news.o:  news.c

manpage: news.man
	 sed -e s,/var/sysnews,$(NEWSDIR),\
	     -e s,.news_time,$(NEWSTIME), < news.man > news.1

install: all
	 install -obin -gbin -m 555 news $(PREFIX)/bin
	 install -m 444 news.1 $(PREFIX)/man/man1
clean:
	rm -f news news.o news.1
