diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-16 17:19:39 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-16 17:19:39 +0000 |
commit | fa61ca75916b46d808d6d341f164691ad56c9d4f (patch) | |
tree | c565cf59b7cef3cea84448e1e6a8fc040f0b071d | |
parent | 6d82f94681618d50411bb7e4e30e40a0f0046d4c (diff) | |
download | busybox-w32-fa61ca75916b46d808d6d341f164691ad56c9d4f.tar.gz busybox-w32-fa61ca75916b46d808d6d341f164691ad56c9d4f.tar.bz2 busybox-w32-fa61ca75916b46d808d6d341f164691ad56c9d4f.zip |
- add cross-reference generation target.
Experimental.
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -140,6 +140,7 @@ help: | |||
140 | @echo ' all - Executable and documentation' | 140 | @echo ' all - Executable and documentation' |
141 | @echo ' busybox - the swiss-army executable' | 141 | @echo ' busybox - the swiss-army executable' |
142 | @echo ' doc - docs/BusyBox.{txt,html,1}' | 142 | @echo ' doc - docs/BusyBox.{txt,html,1}' |
143 | @echo ' html - create html-based cross-reference' | ||
143 | @echo | 144 | @echo |
144 | @echo 'Configuration:' | 145 | @echo 'Configuration:' |
145 | @echo ' allnoconfig - disable all symbols in .config' | 146 | @echo ' allnoconfig - disable all symbols in .config' |
@@ -473,7 +474,7 @@ clean: | |||
473 | libbusybox.so* \ | 474 | libbusybox.so* \ |
474 | .config.old busybox busybox_unstripped | 475 | .config.old busybox busybox_unstripped |
475 | - rm -r -f _install testsuite/links | 476 | - rm -r -f _install testsuite/links |
476 | - find . -name .\*.flags -o -name \*.o -o -name \*.om \ | 477 | - find . -name .\*.flags -o -name \*.o -o -name \*.om -o -name \*.syn \ |
477 | -o -name \*.os -o -name \*.osm -o -name \*.a | xargs rm -f | 478 | -o -name \*.os -o -name \*.osm -o -name \*.a | xargs rm -f |
478 | 479 | ||
479 | distclean: clean | 480 | distclean: clean |
@@ -503,6 +504,17 @@ release: distclean #doc | |||
503 | tags: | 504 | tags: |
504 | ctags -R . | 505 | ctags -R . |
505 | 506 | ||
507 | # documentation, cross-reference | ||
508 | # Modern distributions already ship synopsis packages (e.g. debian) | ||
509 | # If you have an old distribution go to http://synopsis.fresco.org/ | ||
510 | syn_tgt := $(wildcard $(patsubst %,%/*.c,$(SRC_DIRS))) | ||
511 | syn := $(patsubst %.c, %.syn, $(syn_tgt)) | ||
512 | |||
513 | %.syn: %.c | ||
514 | synopsis -p C -l Comments.SSDFilter,Comments.Previous $(INCS) -Wp,verbose,debug,preprocess,cppflags="'$(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $(PROG_CFLAGS) $(PROG_LDFLAGS) $(CFLAGS_COMBINE) $(APPLETS_DEFINE) $(BUSYBOX_DEFINE)'" -o $@ $< | ||
515 | html: $(syn) | ||
516 | synopsis -f HTML -Wf,title="'BusyBox Documentation'" -o $@ $^ | ||
517 | |||
506 | 518 | ||
507 | endif # ifeq ($(skip-makefile),) | 519 | endif # ifeq ($(skip-makefile),) |
508 | 520 | ||