diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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' |
28 | DODEBUG = false | 28 | DODEBUG = true |
29 | 29 | ||
30 | # If you want a static binary, turn this on. | 30 | # If you want a static binary, turn this on. |
31 | DOSTATIC = false | 31 | DOSTATIC = false |
@@ -94,7 +94,7 @@ ifdef BB_INIT_SCRIPT | |||
94 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' | 94 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' |
95 | endif | 95 | endif |
96 | 96 | ||
97 | all: busybox busybox.links | 97 | all: busybox busybox.links docs |
98 | .PHONY: all | 98 | .PHONY: all |
99 | 99 | ||
100 | busybox: $(OBJECTS) | 100 | busybox: $(OBJECTS) |
@@ -104,6 +104,9 @@ busybox: $(OBJECTS) | |||
104 | busybox.links: busybox.def.h | 104 | busybox.links: busybox.def.h |
105 | - ./busybox.mkll | sort >$@ | 105 | - ./busybox.mkll | sort >$@ |
106 | 106 | ||
107 | docs: docs/busybox.pod | ||
108 | cd docs && $(MAKE) clean all | ||
109 | |||
107 | regexp.o nfsmount.o: %.o: %.h | 110 | regexp.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 |
130 | dist release: distclean | 133 | dist 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); \ |