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: |