aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-16 17:19:39 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-16 17:19:39 +0000
commitfa61ca75916b46d808d6d341f164691ad56c9d4f (patch)
treec565cf59b7cef3cea84448e1e6a8fc040f0b071d
parent6d82f94681618d50411bb7e4e30e40a0f0046d4c (diff)
downloadbusybox-w32-fa61ca75916b46d808d6d341f164691ad56c9d4f.tar.gz
busybox-w32-fa61ca75916b46d808d6d341f164691ad56c9d4f.tar.bz2
busybox-w32-fa61ca75916b46d808d6d341f164691ad56c9d4f.zip
- add cross-reference generation target.
Experimental.
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 55f45f945..82bcca62f 100644
--- a/Makefile
+++ b/Makefile
@@ -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
479distclean: clean 480distclean: clean
@@ -503,6 +504,17 @@ release: distclean #doc
503tags: 504tags:
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/
510syn_tgt := $(wildcard $(patsubst %,%/*.c,$(SRC_DIRS)))
511syn := $(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 $@ $<
515html: $(syn)
516 synopsis -f HTML -Wf,title="'BusyBox Documentation'" -o $@ $^
517
506 518
507endif # ifeq ($(skip-makefile),) 519endif # ifeq ($(skip-makefile),)
508 520