home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-02-26 | 739 b | 35 lines |
- # Makefile from the nup distribution
-
- Dir = /usr/lib/ps
- # Delete the -Dindex=strchr on BSD systems without str*** routines.
- CFLAGS = -O -Dindex=strchr
-
- all: nup.pro nup.epi psnup
-
- nup.pro: nup.pre.ps psc
- psc <nup.pre.ps >nup.pro
- nup.epi: nup.post.ps psc
- psc <nup.post.ps >nup.epi
- psc: psc.c
- $(CC) $(CFLAGS) -o psc psc.c
-
- psnup: nup.pro nup.epi psnup.sh
- sed -e '/@@@nup.pro@@@/r nup.pro' \
- -e '/@@@nup.pro@@@/d' \
- -e '/@@@nup.epi@@@/r nup.epi' \
- -e '/@@@nup.epi@@@/d' \
- psnup.sh > t
- mv t psnup
- chmod 755 psnup
-
- install: $(Dir)/nup.pro $(Dir)/nup.epi
- $(Dir)/nup.pro: nup.pro
- cp nup.pro $(Dir)
- $(Dir)/nup.epi: nup.epi
- cp nup.epi $(Dir)
-
- tidy:
- -rm -f *.BAK *.CKP '#'* core
- clean:
- -rm -f nup.pro nup.epi psc psnup
-