comparison make/solaris/makefiles/cscope.make @ 114:34935c25a52d

Merge
author kamg
date Tue, 15 Apr 2008 18:11:33 -0400
parents build/solaris/makefiles/cscope.make@7747916a0945 build/solaris/makefiles/cscope.make@a294fd0c4b38
children d1605aabd0a1
comparison
equal deleted inserted replaced
113:ba764ed4b6f2 114:34935c25a52d
36 36
37 include $(GAMMADIR)/make/scm.make 37 include $(GAMMADIR)/make/scm.make
38 38
39 NAWK = /usr/xpg4/bin/awk 39 NAWK = /usr/xpg4/bin/awk
40 RM = rm -f 40 RM = rm -f
41 HG = hg
41 CS_TOP = ../.. 42 CS_TOP = ../..
42 43
43 CSDIRS = $(CS_TOP)/src $(CS_TOP)/make 44 CSDIRS = $(CS_TOP)/src $(CS_TOP)/make
44 CSINCS = $(CSDIRS:%=-I%) 45 CSINCS = $(CSDIRS:%=-I%)
45 46
139 TAGS.clean: nametable.clean 140 TAGS.clean: nametable.clean
140 -$(RM) TAGS 141 -$(RM) TAGS
141 142
142 # .nametable.files and .nametable.files.tmp are used to determine if any files 143 # .nametable.files and .nametable.files.tmp are used to determine if any files
143 # were added to/deleted from/renamed in the workspace. If not, then there's 144 # were added to/deleted from/renamed in the workspace. If not, then there's
144 # normally no need to run find. To force a 'find': gmake nametable.clean. 145 # normally no need to rebuild the cscope database. To force a rebuild of
146 # the cscope database: gmake nametable.clean.
145 .nametable.files: .nametable.files.tmp 147 .nametable.files: .nametable.files.tmp
146 cmp -s $@ $< || cp $< $@ 148 ( cmp -s $@ $< ) || ( cp $< $@ )
149 -$(RM) $<
147 150
148 .nametable.files.tmp: $(CS_TOP)/Codemgr_wsdata/nametable 151 # `hg status' is slightly faster than `hg fstatus'. Both are
149 $(NAWK) \ 152 # quite a bit slower on an NFS mounted file system, so this is
150 '{ if (sub("( [a-z0-9]{2,8}){4}$$", "")) print $$0; }' $< > $@ 153 # really geared towards repos on local file systems.
154 .nametable.files.tmp:
155 -$(HG) fstatus -acmn > $@
151 156
152 nametable.clean: 157 nametable.clean:
153 -$(RM) .nametable.files .nametable.files.tmp 158 -$(RM) .nametable.files .nametable.files.tmp
154 159
155 FORCE: 160 FORCE: