Makefile 1.69 KB
#
# Makefile for old relnotes (different from other man dirs)
#

include $(ROOT)/usr/include/make/PRdefs

OLD_RELNOTES =	relnotes.090795	\
		relnotes.092995	\
		relnotes.102695	\
		relnotes20B	\
		relnotes20C	\
		relnotes20E	\
		relnotes20F	\
		relnotes20G	\
		relnotes20H.jp

OLD_DOCS =	relnotes20I.jp \
		relnotes20I_64dd.jp \
		relnotes20I_naudio.jp \
		relnotes20J.jp \
		relnotes20K.jp

OLD_SGIDOCS =   ${OLD_DOCS:.jp=.sgi}

OLD_PCDOCS =	${OLD_DOCS:.jp=.pc}

LDIRT = $(OLD_SGIDOCS) $(OLD_PCDOCS)

default:

include $(COMMONRULES)

install:        default $(OLD_SGIDOCS)
		$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
						$(OLD_RELNOTES)
		$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
		-src relnotes20I.sgi relnotes20I.jp
		$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
		-src relnotes20I_64dd.sgi relnotes20I_64dd.jp
		$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
		-src relnotes20I_naudio.sgi relnotes20I_naudio.jp
		$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
		-src relnotes20J.sgi relnotes20J.jp
		$(INSTALL) -m 444 -F /usr/src/PR/doc/relnotes_old \
		-src relnotes20K.sgi relnotes20K.jp
		(cd patches20I; make install)
		(cd patches20J; make install)

$(OLD_SGIDOCS):
		for i in $(OLD_DOCS:.jp=); \
		do \
			perl -ne 'if(/^#if(def.+PC|ndef.+SGI)/){$$a=1}elsif(/^#if(ndef.+PC|def.+SGI)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' $$i.jp > $$i.sgi; \
		done

$(OLD_PCDOCS):
		for i in $(OLD_DOCS:.jp=); \
		do \
			perl -ne 'if(/^#if(def.+SGI|ndef.+PC)/){$$a=1}elsif(/^#if(ndef.+SGI|def.+PC)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' $$i.jp > $$i.pc; \
		done

pcdocs: $(OLD_PCDOCS)
	(cd patches20I; make pcdocs)
	(cd patches20J; make pcdocs)