Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/postscript/mcolor/mcolor.mk

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#
# Not installing the man page.
#

MAKE=/bin/make
MAKEFILE=mcolor.mk

SYSTEM=V9
VERSION=3.3.2

OWNER=bin
GROUP=bin

POSTLIB=/usr/lib/postscript
TMACDIR=/usr/lib/tmac

all :
	@cp color.sr tmac.color

install : all
	@if [ ! -d $(TMACDIR) ]; then \
	    mkdir $(TMACDIR); \
	    chmod 755 $(TMACDIR); \
	    chgrp $(GROUP) $(TMACDIR); \
	    chown $(OWNER) $(TMACDIR); \
	fi
	cp tmac.color $(TMACDIR)/tmac.color
	@chmod 644 $(TMACDIR)/tmac.color
	@chgrp $(GROUP) $(TMACDIR)/tmac.color
	@chown $(OWNER) $(TMACDIR)/tmac.color

clean :
	rm -f tmac.color

clobber : clean

changes :
	@trap "" 1 2 3 15; \
	sed \
	    -e "s'^SYSTEM=.*'SYSTEM=$(SYSTEM)'" \
	    -e "s'^VERSION=.*'VERSION=$(VERSION)'" \
	    -e "s'^GROUP=.*'GROUP=$(GROUP)'" \
	    -e "s'^OWNER=.*'OWNER=$(OWNER)'" \
	    -e "s'^POSTLIB=.*'POSTLIB=$(POSTLIB)'" \
	    -e "s'^TMACDIR=.*'TMACDIR=$(TMACDIR)'" \
	$(MAKEFILE) >X$(MAKEFILE); \
	mv X$(MAKEFILE) $(MAKEFILE); \
	sed \
	    -e "s'^.ds dP.*'.ds dP $(POSTLIB)'" \
	    -e "s'^.ds dT.*'.ds dT $(TMACDIR)'" \
	mcolor.5 >Xmcolor.5; \
	mv Xmcolor.5 mcolor.5


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].