1#ident @(#)sccsdiff.mk 1.7 18/09/19 2########################################################################### 3# Sample makefile for installing localized shell scripts 4########################################################################### 5SRCROOT= ../../../.. 6RULESDIR= RULES 7include $(SRCROOT)/$(RULESDIR)/rules.top 8########################################################################### 9 10PREINSDIR= $(SCCS_BIN_PRE) 11#SCCS_BIN_PRE= sccs/ 12SCCS_HELP_PRE= ccs/ 13SCCS_BIN_PRE= ccs/ 14INSDIR= bin 15INSMODE= 0755 16TARGET= sccsdiff 17SCRFILE= sccsdiff.sh 18#XMK_FILE= Makefile.man 19 20########################################################################### 21include $(SRCROOT)/$(RULESDIR)/rules.scr 22########################################################################### 23 24CPPOPTS += -I../../hdr 25VERSION= ../../hdr/version.c 26 27LOCALIZE= @echo " ==> LOCALIZING \"$@\""; $(RM_F) $@; \ 28 SVERS=`$(CPP) $(CPP_FLAGS) $(CPPFLAGS) $(VERSION) | grep '^version' | awk '{ print $$2 }' | sed 's/"//g'`\ 29 VDATE=`$(CPP) $(CPP_FLAGS) $(CPPFLAGS) $(VERSION) | grep '^vdate' | awk '{ print $$2 }' | sed 's/"//g'`\ 30 SPROV=`$(CPP) $(CPP_FLAGS) $(CPPFLAGS) $(VERSION) | grep '^provider' | awk '{ print $$2 }' | sed 's/"//g'`\ 31 SHOST=`$(CPP) $(CPP_FLAGS) $(CPPFLAGS) $(VERSION) | grep '^host_sub' | awk '{ print $$2 }' | sed 's/"//g'`\ 32 export SVERS SPROV;\ 33 sed "s/VERSION/$$SVERS/;s,VDATE,$$VDATE,;s/PROVIDER/$$SPROV/;s/HOST_SUB/$$SHOST/;s,INS_BASE,$(INS_BASE),;s,SCCS_BIN_PRE,$(SCCS_BIN_PRE)," $(SRCFILE) > $@ ; : 34