generate etags too
This commit is contained in:
parent
ac8f60ac62
commit
040739edac
16
Makefile
16
Makefile
|
@ -46,6 +46,9 @@
|
||||||
DIRS = src doc man etc
|
DIRS = src doc man etc
|
||||||
|
|
||||||
CTAGOPTS = --totals -I '__initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS'
|
CTAGOPTS = --totals -I '__initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS'
|
||||||
|
ETAGS=etags
|
||||||
|
ETAGSOPTS=-a
|
||||||
|
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "Pick one of the following targets:"
|
@echo "Pick one of the following targets:"
|
||||||
|
@ -56,7 +59,8 @@ help:
|
||||||
@echo -e "\tmake install\t\t- install modules and programs"
|
@echo -e "\tmake install\t\t- install modules and programs"
|
||||||
@echo -e "\tmake clean\t\t- remove old binaries and dependency files"
|
@echo -e "\tmake clean\t\t- remove old binaries and dependency files"
|
||||||
@echo -e "\tmake mrproper\t\t- 'make clean' + remove config file"
|
@echo -e "\tmake mrproper\t\t- 'make clean' + remove config file"
|
||||||
@echo -e "\tmake tags\t\t- generate tag files for source code"
|
@echo -e "\tmake tags\t\t- generate ctag files for source code"
|
||||||
|
@echo -e "\tmake TAGS\t\t- generate etag files for source code"
|
||||||
@echo " "
|
@echo " "
|
||||||
|
|
||||||
all: config.mk
|
all: config.mk
|
||||||
|
@ -64,7 +68,7 @@ all: config.mk
|
||||||
|
|
||||||
mrproper: clean
|
mrproper: clean
|
||||||
rm -f config.out
|
rm -f config.out
|
||||||
rm -f tags.linux
|
rm -f tags.linux tags TAGS
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
touch config.mk config.new
|
touch config.mk config.new
|
||||||
|
@ -113,6 +117,14 @@ tags.linux:
|
||||||
xargs ctags -a -f $@ $(CTAGOPTS); \
|
xargs ctags -a -f $@ $(CTAGOPTS); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
TAGS: dummy
|
||||||
|
rm -f TAGS
|
||||||
|
# if [ -h linux ]; then cp linux/TAGS TAGS; fi
|
||||||
|
{ find . -name '*.[ch]' -print ; \
|
||||||
|
find . -name '*.[ch]' -print ; \
|
||||||
|
find . -name '*.mk' -print ; \
|
||||||
|
find . -iname 'Makefile' -print ; } | $(ETAGS) - $(ETAGSOPTS)
|
||||||
|
|
||||||
dummy:
|
dummy:
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue