Eric Andersen | c499601 | 1999-10-20 22:08:37 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Eric Andersen | cb81e64 | 2003-07-14 21:21:08 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> |
Erik Andersen | 9ffdaa6 | 2000-02-11 21:55:04 +0000 | [diff] [blame] | 4 | # |
Eric Andersen | c499601 | 1999-10-20 22:08:37 +0000 | [diff] [blame] | 5 | # This program is free software; you can redistribute it and/or modify |
| 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation; either version 2 of the License, or |
| 8 | # (at your option) any later version. |
| 9 | # |
| 10 | # This program is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | # General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with this program; if not, write to the Free Software |
| 17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | # |
| 19 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 20 | #-------------------------------------------------------------- |
| 21 | # You shouldn't need to mess with anything beyond this point... |
| 22 | #-------------------------------------------------------------- |
| 23 | noconfig_targets := menuconfig config oldconfig randconfig \ |
| 24 | defconfig allyesconfig allnoconfig clean distclean \ |
| 25 | release tags |
| 26 | TOPDIR=./ |
| 27 | include Rules.mak |
| 28 | |
Glenn L McGrath | 3238ea1 | 2003-02-15 10:53:40 +0000 | [diff] [blame] | 29 | DIRS:=applets archival archival/libunarchive coreutils console-tools \ |
| 30 | debianutils editors findutils init miscutils modutils networking \ |
Glenn L McGrath | 9a2d272 | 2002-11-10 01:33:55 +0000 | [diff] [blame] | 31 | networking/libiproute networking/udhcp procps loginutils shell \ |
Eric Andersen | eac2045 | 2003-07-29 07:45:05 +0000 | [diff] [blame] | 32 | sysklogd util-linux libpwdgrp coreutils/libcoreutils libbb |
Eric Andersen | ab050f5 | 2001-01-27 06:01:43 +0000 | [diff] [blame] | 33 | |
Eric Andersen | 9e48045 | 2003-07-03 10:07:04 +0000 | [diff] [blame] | 34 | ifeq ($(strip $(CONFIG_SELINUX)),y) |
| 35 | CFLAGS += -I/usr/include/selinux |
| 36 | LIBRARIES += -lsecure |
| 37 | endif |
| 38 | |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 39 | CONFIG_CONFIG_IN = sysdeps/$(TARGET_OS)/Config.in |
| 40 | CONFIG_DEFCONFIG = sysdeps/$(TARGET_OS)/defconfig |
| 41 | |
Eric Andersen | 068b6b0 | 2002-12-13 22:53:28 +0000 | [diff] [blame] | 42 | ifeq ($(strip $(HAVE_DOT_CONFIG)),y) |
Eric Andersen | 0081466 | 2001-04-26 23:29:10 +0000 | [diff] [blame] | 43 | |
Eric Andersen | d4fcb80 | 2003-07-15 00:28:26 +0000 | [diff] [blame] | 44 | all: busybox busybox.links doc |
Erik Andersen | 0a704e8 | 2000-05-03 03:19:06 +0000 | [diff] [blame] | 45 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 46 | # In this section, we need .config |
| 47 | -include .config.cmd |
| 48 | include $(patsubst %,%/Makefile.in, $(DIRS)) |
Eric Andersen | 3cd2760 | 2001-10-24 07:58:02 +0000 | [diff] [blame] | 49 | |
Eric Andersen | 1c25ba9 | 2003-06-25 05:18:48 +0000 | [diff] [blame] | 50 | busybox: .depend include/config.h $(libraries-y) |
Glenn L McGrath | d72e34c | 2003-09-20 00:59:35 +0000 | [diff] [blame] | 51 | $(CC) $(LDFLAGS) -o $@ -Wl,--start-group $(libraries-y) $(LIBRARIES) -Wl,--end-group |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 52 | $(STRIPCMD) $@ |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 53 | |
Eric Andersen | b6071ea | 2003-06-25 03:26:04 +0000 | [diff] [blame] | 54 | busybox.links: applets/busybox.mkll include/config.h |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 55 | - $(SHELL) $^ >$@ |
| 56 | |
| 57 | install: applets/install.sh busybox busybox.links |
| 58 | $(SHELL) $< $(PREFIX) |
| 59 | |
Glenn L McGrath | 87470de | 2003-08-29 12:20:31 +0000 | [diff] [blame] | 60 | uninstall: busybox.links |
| 61 | rm -f $(PREFIX)/bin/busybox |
| 62 | for i in `cat busybox.links` ; do rm -f $(PREFIX)$$i; done |
Eric Andersen | 1f30a41 | 2002-04-13 13:39:48 +0000 | [diff] [blame] | 63 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 64 | install-hardlinks: applets/install.sh busybox busybox.links |
| 65 | $(SHELL) $< $(PREFIX) --hardlinks |
| 66 | |
| 67 | |
| 68 | # Documentation Targets |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 69 | doc: olddoc |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 70 | |
| 71 | # Old Docs... |
John Beppu | 94e5054 | 2001-04-05 19:42:03 +0000 | [diff] [blame] | 72 | olddoc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html |
| 73 | |
Eric Andersen | 1552ff7 | 2001-10-31 11:07:12 +0000 | [diff] [blame] | 74 | docs/busybox.pod : docs/busybox_header.pod include/usage.h docs/busybox_footer.pod |
John Beppu | 94e5054 | 2001-04-05 19:42:03 +0000 | [diff] [blame] | 75 | - ( cat docs/busybox_header.pod; \ |
Eric Andersen | 1552ff7 | 2001-10-31 11:07:12 +0000 | [diff] [blame] | 76 | docs/autodocifier.pl include/usage.h; \ |
John Beppu | 94e5054 | 2001-04-05 19:42:03 +0000 | [diff] [blame] | 77 | cat docs/busybox_footer.pod ) > docs/busybox.pod |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 78 | |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 79 | docs/BusyBox.txt: docs/busybox.pod |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 80 | @echo |
| 81 | @echo BusyBox Documentation |
| 82 | @echo |
Eric Andersen | 29be79c | 2000-12-01 22:57:44 +0000 | [diff] [blame] | 83 | -mkdir -p docs |
Eric Andersen | 19f8620 | 2001-02-17 00:42:47 +0000 | [diff] [blame] | 84 | -pod2text $< > $@ |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 85 | |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 86 | docs/BusyBox.1: docs/busybox.pod |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 87 | - mkdir -p docs |
Eric Andersen | 29be79c | 2000-12-01 22:57:44 +0000 | [diff] [blame] | 88 | - pod2man --center=BusyBox --release="version $(VERSION)" \ |
Eric Andersen | 19f8620 | 2001-02-17 00:42:47 +0000 | [diff] [blame] | 89 | $< > $@ |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 90 | |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 91 | docs/BusyBox.html: docs/busybox.net/BusyBox.html |
Eric Andersen | 1cf8166 | 2001-02-17 15:55:15 +0000 | [diff] [blame] | 92 | - mkdir -p docs |
Eric Andersen | e2f6e12 | 2000-12-01 19:55:04 +0000 | [diff] [blame] | 93 | -@ rm -f docs/BusyBox.html |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 94 | -@ ln -s busybox.net/BusyBox.html docs/BusyBox.html |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 95 | |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 96 | docs/busybox.net/BusyBox.html: docs/busybox.pod |
| 97 | -@ mkdir -p docs/busybox.net |
Eric Andersen | 19f8620 | 2001-02-17 00:42:47 +0000 | [diff] [blame] | 98 | - pod2html --noindex $< > \ |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 99 | docs/busybox.net/BusyBox.html |
Eric Andersen | 3676374 | 2001-04-24 21:46:07 +0000 | [diff] [blame] | 100 | -@ rm -f pod2htm* |
Erik Andersen | 0a704e8 | 2000-05-03 03:19:06 +0000 | [diff] [blame] | 101 | |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 102 | |
| 103 | # New docs based on DOCBOOK SGML |
Eric Andersen | 488aac2 | 2000-09-24 02:42:48 +0000 | [diff] [blame] | 104 | newdoc: docs/busybox.txt docs/busybox.pdf docs/busybox/busyboxdocumentation.html |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 105 | |
| 106 | docs/busybox.txt: docs/busybox.sgml |
| 107 | @echo |
| 108 | @echo BusyBox Documentation |
| 109 | @echo |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 110 | - mkdir -p docs |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 111 | (cd docs; sgmltools -b txt busybox.sgml) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 112 | |
| 113 | docs/busybox.dvi: docs/busybox.sgml |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 114 | - mkdir -p docs |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 115 | (cd docs; sgmltools -b dvi busybox.sgml) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 116 | |
Eric Andersen | a2c83d8 | 2000-07-07 20:52:56 +0000 | [diff] [blame] | 117 | docs/busybox.ps: docs/busybox.sgml |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 118 | - mkdir -p docs |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 119 | (cd docs; sgmltools -b ps busybox.sgml) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 120 | |
Eric Andersen | a2c83d8 | 2000-07-07 20:52:56 +0000 | [diff] [blame] | 121 | docs/busybox.pdf: docs/busybox.ps |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 122 | - mkdir -p docs |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 123 | (cd docs; ps2pdf busybox.ps) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 124 | |
Eric Andersen | 488aac2 | 2000-09-24 02:42:48 +0000 | [diff] [blame] | 125 | docs/busybox/busyboxdocumentation.html: docs/busybox.sgml |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 126 | - mkdir -p docs |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 127 | (cd docs/busybox.net; sgmltools -b html ../busybox.sgml) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 128 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 129 | # The nifty new buildsystem stuff |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 130 | scripts/mkdep: scripts/mkdep.c |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 131 | $(HOSTCC) $(HOSTCFLAGS) -o scripts/mkdep scripts/mkdep.c |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 132 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 133 | scripts/split-include: scripts/split-include.c |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 134 | $(HOSTCC) $(HOSTCFLAGS) -o scripts/split-include scripts/split-include.c |
Erik Andersen | 1d1d950 | 2000-04-21 01:26:49 +0000 | [diff] [blame] | 135 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 136 | .depend: scripts/mkdep |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 137 | rm -f .depend .hdepend; |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 138 | mkdir -p include/config; |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 139 | $(HOSTCC) $(HOSTCFLAGS) -o scripts/mkdep scripts/mkdep.c |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 140 | scripts/mkdep -I include -- \ |
| 141 | `find . -name \*.c -print` >> .depend; |
| 142 | scripts/mkdep -I include -- \ |
| 143 | `find . -name \*.h -print` >> .hdepend; |
| 144 | $(MAKE) $(patsubst %,_sfdep_%,$(DIRS)) _FASTDEP_ALL_SUB_DIRS="$(DIRS)" ; |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 145 | |
Eric Andersen | aaab46b | 2003-01-11 18:02:51 +0000 | [diff] [blame] | 146 | depend dep: include/config.h .depend |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 147 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 148 | include/config/MARKER: depend scripts/split-include |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 149 | scripts/split-include include/config.h include/config |
| 150 | @ touch include/config/MARKER |
| 151 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 152 | include/config.h: .config |
| 153 | @if [ ! -x ./scripts/config/conf ] ; then \ |
Glenn L McGrath | b19c73d | 2003-08-29 13:25:55 +0000 | [diff] [blame] | 154 | $(MAKE) -C scripts/config conf; \ |
Eric Andersen | 3cd2760 | 2001-10-24 07:58:02 +0000 | [diff] [blame] | 155 | fi; |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 156 | @./scripts/config/conf -o $(CONFIG_CONFIG_IN) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 157 | |
| 158 | %.o: %.c |
| 159 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
| 160 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 161 | finished2: |
| 162 | @echo |
| 163 | @echo Finished installing... |
| 164 | @echo |
Eric Andersen | 19f8620 | 2001-02-17 00:42:47 +0000 | [diff] [blame] | 165 | |
Eric Andersen | 068b6b0 | 2002-12-13 22:53:28 +0000 | [diff] [blame] | 166 | else # ifeq ($(strip $(HAVE_DOT_CONFIG)),y) |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 167 | |
| 168 | all: menuconfig |
| 169 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 170 | # configuration |
| 171 | # --------------------------------------------------------------------------- |
| 172 | |
Eric Andersen | 068b6b0 | 2002-12-13 22:53:28 +0000 | [diff] [blame] | 173 | scripts/config/conf: |
Glenn L McGrath | b19c73d | 2003-08-29 13:25:55 +0000 | [diff] [blame] | 174 | $(MAKE) -C scripts/config conf |
Eric Andersen | 068b6b0 | 2002-12-13 22:53:28 +0000 | [diff] [blame] | 175 | -@if [ ! -f .config ] ; then \ |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 176 | cp $(CONFIG_DEFCONFIG) .config; \ |
Eric Andersen | 068b6b0 | 2002-12-13 22:53:28 +0000 | [diff] [blame] | 177 | fi |
| 178 | scripts/config/mconf: |
Glenn L McGrath | b19c73d | 2003-08-29 13:25:55 +0000 | [diff] [blame] | 179 | $(MAKE) -C scripts/config ncurses conf mconf |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 180 | -@if [ ! -f .config ] ; then \ |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 181 | cp $(CONFIG_DEFCONFIG) .config; \ |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 182 | fi |
| 183 | |
| 184 | menuconfig: scripts/config/mconf |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 185 | @./scripts/config/mconf $(CONFIG_CONFIG_IN) |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 186 | |
| 187 | config: scripts/config/conf |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 188 | @./scripts/config/conf $(CONFIG_CONFIG_IN) |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 189 | |
| 190 | oldconfig: scripts/config/conf |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 191 | @./scripts/config/conf -o $(CONFIG_CONFIG_IN) |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 192 | |
| 193 | randconfig: scripts/config/conf |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 194 | @./scripts/config/conf -r $(CONFIG_CONFIG_IN) |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 195 | |
| 196 | allyesconfig: scripts/config/conf |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 197 | @./scripts/config/conf -y $(CONFIG_CONFIG_IN) |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 198 | |
| 199 | allnoconfig: scripts/config/conf |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 200 | @./scripts/config/conf -n $(CONFIG_CONFIG_IN) |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 201 | |
| 202 | defconfig: scripts/config/conf |
Glenn L McGrath | 6376b58 | 2003-09-24 15:48:29 +0000 | [diff] [blame^] | 203 | @./scripts/config/conf -d $(CONFIG_CONFIG_IN) |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 204 | |
| 205 | test tests: busybox |
| 206 | # Note that 'tests' is depricated. Use 'make check' instead |
| 207 | # To use the nice new testsuite.... |
Mark Whitley | d2117e9 | 2001-03-10 00:51:29 +0000 | [diff] [blame] | 208 | cd tests && ./tester.sh |
Erik Andersen | 9ffdaa6 | 2000-02-11 21:55:04 +0000 | [diff] [blame] | 209 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 210 | check: busybox |
| 211 | cd testsuite && ./runtest |
| 212 | |
Eric Andersen | cc8ed39 | 1999-10-05 16:24:54 +0000 | [diff] [blame] | 213 | clean: |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 214 | - $(MAKE) -C tests clean |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 215 | - rm -f docs/busybox.txt docs/busybox.dvi docs/busybox.ps \ |
Eric Andersen | a39342b | 2002-10-08 19:31:04 +0000 | [diff] [blame] | 216 | docs/busybox.pdf docs/busybox.pod docs/busybox.net/busybox.html \ |
Eric Andersen | 24e098a | 2003-08-22 20:53:38 +0000 | [diff] [blame] | 217 | docs/busybox pod2htm* *.gdb *.elf *~ core .*config.log \ |
| 218 | docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \ |
| 219 | docs/busybox.net/BusyBox.html busybox.links libbb/loop.h \ |
| 220 | .config.old .hdepend busybox |
| 221 | - rm -rf _install |
Eric Andersen | 8771517 | 2002-07-31 03:45:05 +0000 | [diff] [blame] | 222 | - find . -name .\*.flags -exec rm -f {} \; |
Eric Andersen | 8771517 | 2002-07-31 03:45:05 +0000 | [diff] [blame] | 223 | - find . -name \*.o -exec rm -f {} \; |
| 224 | - find . -name \*.a -exec rm -f {} \; |
Eric Andersen | cc8ed39 | 1999-10-05 16:24:54 +0000 | [diff] [blame] | 225 | |
| 226 | distclean: clean |
Eric Andersen | a995343 | 2003-01-27 22:11:59 +0000 | [diff] [blame] | 227 | - rm -f scripts/split-include scripts/mkdep |
| 228 | - rm -rf include/config include/config.h |
| 229 | - find . -name .depend -exec rm -f {} \; |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 230 | rm -f .config .config.old .config.cmd |
Eric Andersen | a995343 | 2003-01-27 22:11:59 +0000 | [diff] [blame] | 231 | - $(MAKE) -C scripts/config clean |
Eric Andersen | cc8ed39 | 1999-10-05 16:24:54 +0000 | [diff] [blame] | 232 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 233 | release: distclean #doc |
Erik Andersen | fac10d7 | 2000-02-07 05:29:42 +0000 | [diff] [blame] | 234 | cd ..; \ |
| 235 | rm -rf busybox-$(VERSION); \ |
| 236 | cp -a busybox busybox-$(VERSION); \ |
| 237 | \ |
| 238 | find busybox-$(VERSION)/ -type d \ |
| 239 | -name CVS \ |
| 240 | -print \ |
Eric Andersen | 53b55ac | 2001-03-16 07:43:53 +0000 | [diff] [blame] | 241 | -exec rm -rf {} \; ; \ |
Erik Andersen | fac10d7 | 2000-02-07 05:29:42 +0000 | [diff] [blame] | 242 | \ |
| 243 | find busybox-$(VERSION)/ -type f \ |
Eric Andersen | b0b732b | 2000-07-06 23:17:16 +0000 | [diff] [blame] | 244 | -name .\#* \ |
| 245 | -print \ |
Eric Andersen | 53b55ac | 2001-03-16 07:43:53 +0000 | [diff] [blame] | 246 | -exec rm -f {} \; ; \ |
Eric Andersen | b0b732b | 2000-07-06 23:17:16 +0000 | [diff] [blame] | 247 | \ |
Erik Andersen | fac10d7 | 2000-02-07 05:29:42 +0000 | [diff] [blame] | 248 | tar -cvzf busybox-$(VERSION).tar.gz busybox-$(VERSION)/; |
Mark Whitley | dd23b8b | 2000-07-10 23:00:47 +0000 | [diff] [blame] | 249 | |
Mark Whitley | dd23b8b | 2000-07-10 23:00:47 +0000 | [diff] [blame] | 250 | tags: |
| 251 | ctags -R . |
Matt Kraai | 4e05da8 | 2001-11-19 19:47:56 +0000 | [diff] [blame] | 252 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 253 | |
Eric Andersen | 068b6b0 | 2002-12-13 22:53:28 +0000 | [diff] [blame] | 254 | endif # ifeq ($(strip $(HAVE_DOT_CONFIG)),y) |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 255 | |
| 256 | .PHONY: dummy subdirs release distclean clean config oldconfig \ |
| 257 | menuconfig tags check test tests depend |
| 258 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 259 | |