← Commit list

f5efa7bfe

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2006-06-16
SOURCE BUG Duration: 35s

Subject

- add patch to provide a target 'html' to build a cross-reference of the source

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

patches/cross-reference.synopsis.diff+31 -0
@@ -0,0 +1,31 @@
+Index: Makefile
+===================================================================
+--- Makefile (revision 15403)
++++ Makefile (working copy)
+@@ -473,7 +473,7 @@ clean:
+ libbusybox.so* \
+ .config.old busybox busybox_unstripped
+ - rm -r -f _install testsuite/links
+- - find . -name .\*.flags -o -name \*.o -o -name \*.om \
++ - find . -name .\*.flags -o -name \*.o -o -name \*.om -o -name \*.syn \
+ -o -name \*.os -o -name \*.osm -o -name \*.a | xargs rm -f
+
+ distclean: clean
+@@ -503,6 +503,17 @@ release: distclean #doc
+ tags:
+ ctags -R .
+
++# documentation, cross-reference
++# Modern distributions already ship synopsis packages (e.g. debian)
++# If you have an old distribution go to http://synopsis.fresco.org/
++hdr := $(wildcard $(patsubst %,%/*.h,$(SRC_DIRS)))
++syn := $(patsubst %.h, %.syn, $(hdr))
++
++%.syn: %.h
++ 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 $@ $<
++html: $(syn)
++ synopsis -f HTML -Wf,title="'BusyBox Documentation'" -o $@ $^
++
+
+ endif # ifeq ($(skip-makefile),)
+