2 CFLAGS=${UNIX} -g -I. -I../libc -I../common -I/usr/include -I/usr/include/sys
4 HOSTNAME=cat /etc/whoami
6 .c.o: ; $(CC) -c $(CFLAGS) $*.c
10 echo 's+LIBDIR+$(LIB)+g' >sed.file
11 echo 's+HOSTNAME+$(HOSTNAME)+g' >>sed.file
13 install: sedfile install.fish install.mail.sh
17 sed -f sed.file gone.fishing >$(LIB)/gone.fishing
18 -chmod 775 $(LIB)/gone.fishing
19 -chown bin $(LIB)/gone.fishing $(LIB)/gone.msg
22 sed -f sed.file mail.sh >/bin/mail
26 install.notify: notify
27 cp notify $(LIB)/notify
28 -chmod 775 $(LIB)/notify
29 -chown bin $(LIB)/notify
36 cc $(LFLAGS) notify.o -o notify
38 mail: mail.o ../config/config.o
39 cc $(LFLAGS) mail.o ../config/config.o -o mail
42 -rm -f *.[oOa] core a.out *.sL notify