aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-03 03:19:06 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-03 03:19:06 +0000
commit0a704e8ff62a7fdcd08f1fcc89ca66133da2db07 (patch)
tree6c6b2f7615f63ddf6f209c23ce02424b58346651 /Makefile
parenta19bc64653aab46f6335ed6aa7d7d70ff7b5fb0b (diff)
downloadbusybox-w32-0a704e8ff62a7fdcd08f1fcc89ca66133da2db07.tar.gz
busybox-w32-0a704e8ff62a7fdcd08f1fcc89ca66133da2db07.tar.bz2
busybox-w32-0a704e8ff62a7fdcd08f1fcc89ca66133da2db07.zip
Remove BB_FEATURE_REMOUNT (small, and should always be present)
and fix documentation dependancy checks, so it is only built when it should be built. -Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fc0396eec..424218cfa 100644
--- a/Makefile
+++ b/Makefile
@@ -99,12 +99,28 @@ ifdef BB_INIT_SCRIPT
99 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' 99 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"'
100endif 100endif
101 101
102all: busybox busybox.links 102all: busybox busybox.links doc
103
104doc: BusyBox.txt BusyBox.1 BusyBox.html
105
106BusyBox.txt: docs/busybox.pod
107 @echo
108 @echo BusyBox Documentation
109 @echo
110 pod2text docs/busybox.pod > BusyBox.txt
111
112BusyBox.1: docs/busybox.pod
113 pod2man --center=BusyBox --release="version $(VERSION)" docs/busybox.pod > BusyBox.1
114
115BusyBox.html: docs/busybox.pod
116 pod2html docs/busybox.pod > BusyBox.html
117 - rm -f pod2html*
118
119clean:
103 120
104busybox: $(OBJECTS) 121busybox: $(OBJECTS)
105 $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES) 122 $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES)
106 $(STRIP) 123 $(STRIP)
107 ( cd docs ; $(MAKE) )
108 124
109busybox.links: busybox.def.h 125busybox.links: busybox.def.h
110 - ./busybox.mkll | sort >$@ 126 - ./busybox.mkll | sort >$@
@@ -119,6 +135,7 @@ clean:
119 - rm -f busybox.links *~ *.o core 135 - rm -f busybox.links *~ *.o core
120 - rm -rf _install 136 - rm -rf _install
121 - cd tests && $(MAKE) clean 137 - cd tests && $(MAKE) clean
138 - rm -f BusyBox.html BusyBox.1 BusyBox.txt pod2html*
122 139
123distclean: clean 140distclean: clean
124 - rm -f busybox 141 - rm -f busybox
@@ -127,8 +144,7 @@ distclean: clean
127install: busybox busybox.links 144install: busybox busybox.links
128 ./install.sh $(PREFIX) 145 ./install.sh $(PREFIX)
129 146
130dist release: distclean 147dist release: distclean doc
131 ( cd docs ; $(MAKE) )
132 cd ..; \ 148 cd ..; \
133 rm -rf busybox-$(VERSION); \ 149 rm -rf busybox-$(VERSION); \
134 cp -a busybox busybox-$(VERSION); \ 150 cp -a busybox busybox-$(VERSION); \