home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume17
/
pps
/
Makefile
< prev
next >
Wrap
Makefile
|
1989-02-06
|
2KB
|
89 lines
# $Header: Makefile,v 0.0 88/06/22 05:21:37 on Rel $
# Edit the three lines below to suit your system conventions
BIN = .
LIB = .
CHAP = n
MAN = /usr/man/man$(CHAP)
LANG = awk c csh lisp mail ps text sh
AUX = prc
PRO = *.pro
FRONT = pps slide
MANS = pps.$(CHAP) slide.$(CHAP)
SOURCES = READ_ME *.man Makefile *.h *.c *.l *.sh *.pro fonts
AR = shar
ARFLG = -a
.SUFFIXES: .$(CHAP) .man
.man.$(CHAP):
echo .ds lb $(LIB) > $@
echo $(LANG) | sed 's/ /,/g;s/^/.ds lg /' >> $@
cat $*.man >> $@
all: $(LANG) $(AUX) $(FRONT) $(MANS)
awk: awk.o lind.o
$(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
c: c.o lind.o
$(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
csh: csh.o lind.o
$(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
mail: mail.o lind.o
$(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
ps: ps.o lind.o
$(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
sh: sh.o lind.o
$(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
text: text.o lind.o
$(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
lisp: lisp.o lind.o
@echo warning: $@ has no built-ins -- see comment.
$(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
awk.o c.o csh.o sh.o lisp.o: pps.h
pps: pps.sh
sed 's|^lib=.*|lib=$(LIB)|' pps.sh > $@
chmod 755 $@
slide: slide.sh
sed 's|^lib=.*|lib=$(LIB)|' slide.sh > $@
chmod 755 $@
prc: prc.c
$(CC) $(CFLAGS) -o $@ prc.c
install: $(LIB) $(BIN) $(MAN)
$(LIB): $(LANG) $(AUX) $(PRO) fonts
-(cd $@; rm -f $(PRO) fonts) || mkdir $@
cp $(LANG) $(AUX) $(PRO) fonts $@
$(BIN): $(FRONT)
cp $(FRONT) $@
$(MAN): $(MANS)
cp $(MANS) $@
man pps > /dev/null
man slide > /dev/null
pps.$(AR): $(SOURCES)
$(AR) $(ARFLG) $(SOURCES) > $@
clean:
rm -f $(FRONT) $(LANG) $(AUX) $(MANS) *.o pps.$(AR)