aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1f03754f9..e2d98549f 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ BUILDTIME := $(shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z")
25# Set the following to `true' to make a debuggable build. 25# Set the following to `true' to make a debuggable build.
26# Leave this set to `false' for production use. 26# Leave this set to `false' for production use.
27# eg: `make DODEBUG=true tests' 27# eg: `make DODEBUG=true tests'
28DODEBUG = false 28DODEBUG = true
29 29
30# If you want a static binary, turn this on. 30# If you want a static binary, turn this on.
31DOSTATIC = false 31DOSTATIC = false
@@ -94,7 +94,7 @@ ifdef BB_INIT_SCRIPT
94 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' 94 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"'
95endif 95endif
96 96
97all: busybox busybox.links 97all: busybox busybox.links docs
98.PHONY: all 98.PHONY: all
99 99
100busybox: $(OBJECTS) 100busybox: $(OBJECTS)
@@ -104,6 +104,9 @@ busybox: $(OBJECTS)
104busybox.links: busybox.def.h 104busybox.links: busybox.def.h
105 - ./busybox.mkll | sort >$@ 105 - ./busybox.mkll | sort >$@
106 106
107docs: docs/busybox.pod
108 cd docs && $(MAKE) clean all
109
107regexp.o nfsmount.o: %.o: %.h 110regexp.o nfsmount.o: %.o: %.h
108$(OBJECTS): %.o: busybox.def.h internal.h %.c 111$(OBJECTS): %.o: busybox.def.h internal.h %.c
109 112
@@ -128,6 +131,7 @@ install: busybox busybox.links
128 131
129.PHONY: dist release 132.PHONY: dist release
130dist release: distclean 133dist release: distclean
134 cd docs && $(MAKE) clean all
131 cd ..; \ 135 cd ..; \
132 rm -rf busybox-$(VERSION); \ 136 rm -rf busybox-$(VERSION); \
133 cp -a busybox busybox-$(VERSION); \ 137 cp -a busybox busybox-$(VERSION); \