|
|
|
@ -46,6 +46,9 @@
|
|
|
|
|
DIRS = src doc man etc
|
|
|
|
|
|
|
|
|
|
CTAGOPTS = --totals -I '__initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS'
|
|
|
|
|
ETAGS=etags
|
|
|
|
|
ETAGSOPTS=-a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
help:
|
|
|
|
|
@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 clean\t\t- remove old binaries and dependency files"
|
|
|
|
|
@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 " "
|
|
|
|
|
|
|
|
|
|
all: config.mk
|
|
|
|
@ -64,7 +68,7 @@ all: config.mk
|
|
|
|
|
|
|
|
|
|
mrproper: clean
|
|
|
|
|
rm -f config.out
|
|
|
|
|
rm -f tags.linux
|
|
|
|
|
rm -f tags.linux tags TAGS
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
touch config.mk config.new
|
|
|
|
@ -113,6 +117,14 @@ tags.linux:
|
|
|
|
|
xargs ctags -a -f $@ $(CTAGOPTS); \
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|