Commit a340c325e668ca7386c2276387681720be9c3757

Authored by Jean-Christophe PLAGNIOL-VILLARD
1 parent 59829cc189

Makefile : fix tags ctags etags with new drivers organization

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Showing 1 changed file with 33 additions and 8 deletions Side-by-side Diff

... ... @@ -331,18 +331,43 @@
331 331 depend dep: version
332 332 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
333 333  
  334 +TAG_SUBDIRS += include
  335 +TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
  336 +TAG_SUBDIRS += cpu/$(CPU)
  337 +TAG_SUBDIRS += lib_$(ARCH)
  338 +TAG_SUBDIRS += fs/cramfs
  339 +TAG_SUBDIRS += fs/fat
  340 +TAG_SUBDIRS += fs/fdos
  341 +TAG_SUBDIRS += fs/jffs2
  342 +TAG_SUBDIRS += net
  343 +TAG_SUBDIRS += disk
  344 +TAG_SUBDIRS += common
  345 +TAG_SUBDIRS += drivers/bios_emulator
  346 +TAG_SUBDIRS += drivers/block
  347 +TAG_SUBDIRS += drivers/hwmon
  348 +TAG_SUBDIRS += drivers/i2c
  349 +TAG_SUBDIRS += drivers/input
  350 +TAG_SUBDIRS += drivers/misc
  351 +TAG_SUBDIRS += drivers/mtd
  352 +TAG_SUBDIRS += drivers/mtd/nand
  353 +TAG_SUBDIRS += drivers/mtd/nand_legacy
  354 +TAG_SUBDIRS += drivers/mtd/onenand
  355 +TAG_SUBDIRS += drivers/net
  356 +TAG_SUBDIRS += drivers/net/sk98lin
  357 +TAG_SUBDIRS += drivers/pci
  358 +TAG_SUBDIRS += drivers/pcmcia
  359 +TAG_SUBDIRS += drivers/qe
  360 +TAG_SUBDIRS += drivers/rtc
  361 +TAG_SUBDIRS += drivers/serial
  362 +TAG_SUBDIRS += drivers/usb
  363 +TAG_SUBDIRS += drivers/video
  364 +
334 365 tags ctags:
335   - ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
336   - lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
337   - fs/cramfs fs/fat fs/fdos fs/jffs2 \
338   - net disk rtc dtt drivers drivers/sk98lin common \
  366 + ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
339 367 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
340 368  
341 369 etags:
342   - etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
343   - lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
344   - fs/cramfs fs/fat fs/fdos fs/jffs2 \
345   - net disk rtc dtt drivers drivers/sk98lin common \
  370 + etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
346 371 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
347 372  
348 373 $(obj)System.map: $(obj)u-boot