home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-12-28 | 1.6 KB | 63 lines |
- # $Header: /usr/jjc/lprps/RCS/Makefile,v 1.3 90/12/18 10:07:22 jjc Rel $
- # Define A4 if you use A4 rather than letter size paper.
- DEFINES=-DA4
- # Where to install public executables.
- BINDIR=/usr/local/bin
- # Where to install private executables.
- LIBDIR=/usr/local/lib
- # Define REV_COMMAND to be empty if documents don't need to
- # be printed in reverse order.
- REV_COMMAND=$(BINDIR)/psrev |
- # Where to install the filter for text files.
- TEXT_FILTER=$(LIBDIR)/psif-text
- # Where to install the filter for PostScript files.
- PS_FILTER=$(LIBDIR)/psif-ps
- # Filter to convert text to PostScript. You can use your own instead.
- # It must be able to read from standard input.
- TEXT_TO_PS=$(BINDIR)/textps
- CC=cc
- CFLAGS=-g -Bstatic $(DEFINES)
- INSTALL=install
-
- SOURCES=README INSTALL Makefile psrev.c lprps.c psif.c textps.c
-
- all: psrev psif lprps textps psif-text psif-ps
-
- install: all
- $(INSTALL) psif lprps $(LIBDIR)
- $(INSTALL) textps psrev $(BINDIR)
- $(INSTALL) psif-text $(TEXT_FILTER)
- $(INSTALL) psif-ps $(PS_FILTER)
- @echo Now edit /etc/printcap
-
- lprps: lprps.c
- $(CC) $(CFLAGS) -o $@ $<
-
- psif: psif.c
- $(CC) $(CFLAGS) -DTEXT_FILTER=\"$(TEXT_FILTER)\" \
- -DPS_FILTER=\"$(PS_FILTER)\" -o $@ $<
-
- textps: textps.c
- $(CC) $(CFLAGS) -o $@ $<
-
- psrev: psrev.c
- $(CC) $(CFLAGS) -o $@ $<
-
- psif-text: Makefile
- @echo Creating $@
- @echo "#! /bin/sh" > $@
- @echo "$(TEXT_TO_PS) | $(REV_COMMAND) $(LIBDIR)/lprps \$$*" >>$@
- @chmod +x $@
-
- psif-ps: Makefile
- @echo Creating $@
- @echo "#! /bin/sh" > $@
- @echo "$(REV_COMMAND) $(LIBDIR)/lprps \$$*" >>$@
- @chmod +x $@
-
- lprps.shar: $(SOURCES)
- shar $(SOURCES) >$@
-
- clean:
- rm -f psrev psif lprps textps psif-text psif-ps
-