Eric Andersen | c499601 | 1999-10-20 22:08:37 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2002 Erik Andersen <andersee@debian.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 | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 20 | TOPDIR:= $(shell /bin/pwd)/ |
| 21 | include $(TOPDIR).config |
| 22 | include $(TOPDIR)Rules.mak |
| 23 | SUBDIRS:=applets archival archival/libunarchive console-tools \ |
| 24 | editors fileutils findutils init miscutils modutils networking \ |
Russ Dill | 61fb489 | 2002-10-14 21:41:28 +0000 | [diff] [blame] | 25 | networking/udhcp procps loginutils shell shellutils sysklogd \ |
Robert Griebl | 1fca558 | 2002-06-04 20:45:46 +0000 | [diff] [blame] | 26 | textutils util-linux libbb libpwdgrp |
Eric Andersen | ab050f5 | 2001-01-27 06:01:43 +0000 | [diff] [blame] | 27 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 28 | all: do-it-all |
Eric Andersen | 0081466 | 2001-04-26 23:29:10 +0000 | [diff] [blame] | 29 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 30 | # |
| 31 | # Make "config" the default target if there is no configuration file or |
| 32 | # "depend" the target if there is no top-level dependency information. |
| 33 | ifeq (.config,$(wildcard .config)) |
| 34 | include .config |
| 35 | ifeq (.depend,$(wildcard .depend)) |
| 36 | include .depend |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 37 | do-it-all: busybox busybox.links #doc |
| 38 | include $(patsubst %,%/Makefile.in, $(SUBDIRS)) |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 39 | else |
| 40 | CONFIGURATION = depend |
| 41 | do-it-all: depend |
| 42 | endif |
| 43 | else |
| 44 | CONFIGURATION = menuconfig |
| 45 | do-it-all: menuconfig |
| 46 | endif |
Erik Andersen | 0a704e8 | 2000-05-03 03:19:06 +0000 | [diff] [blame] | 47 | |
Eric Andersen | 3cd2760 | 2001-10-24 07:58:02 +0000 | [diff] [blame] | 48 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 49 | busybox: depend $(libraries-y) |
Robert Griebl | d378c31 | 2002-07-19 00:05:54 +0000 | [diff] [blame] | 50 | $(CC) $(LDFLAGS) -o $@ $(libraries-y) $(LIBRARIES) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 51 | $(STRIPCMD) $@ |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 52 | |
| 53 | busybox.links: applets/busybox.mkll |
| 54 | - $(SHELL) $^ >$@ |
| 55 | |
| 56 | install: applets/install.sh busybox busybox.links |
| 57 | $(SHELL) $< $(PREFIX) |
| 58 | |
Eric Andersen | 1f30a41 | 2002-04-13 13:39:48 +0000 | [diff] [blame] | 59 | uninstall: busybox busybox.links |
| 60 | for i in `cat busybox.links` ; do rm -f $$PREFIX$$i; done |
| 61 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 62 | install-hardlinks: applets/install.sh busybox busybox.links |
| 63 | $(SHELL) $< $(PREFIX) --hardlinks |
| 64 | |
| 65 | |
| 66 | # Documentation Targets |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 67 | doc: olddoc |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 68 | |
| 69 | # Old Docs... |
John Beppu | 94e5054 | 2001-04-05 19:42:03 +0000 | [diff] [blame] | 70 | olddoc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html |
| 71 | |
Eric Andersen | 1552ff7 | 2001-10-31 11:07:12 +0000 | [diff] [blame] | 72 | 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] | 73 | - ( cat docs/busybox_header.pod; \ |
Eric Andersen | 1552ff7 | 2001-10-31 11:07:12 +0000 | [diff] [blame] | 74 | docs/autodocifier.pl include/usage.h; \ |
John Beppu | 94e5054 | 2001-04-05 19:42:03 +0000 | [diff] [blame] | 75 | cat docs/busybox_footer.pod ) > docs/busybox.pod |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 76 | |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 77 | docs/BusyBox.txt: docs/busybox.pod |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 78 | @echo |
| 79 | @echo BusyBox Documentation |
| 80 | @echo |
Eric Andersen | 29be79c | 2000-12-01 22:57:44 +0000 | [diff] [blame] | 81 | -mkdir -p docs |
Eric Andersen | 19f8620 | 2001-02-17 00:42:47 +0000 | [diff] [blame] | 82 | -pod2text $< > $@ |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 83 | |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 84 | docs/BusyBox.1: docs/busybox.pod |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 85 | - mkdir -p docs |
Eric Andersen | 29be79c | 2000-12-01 22:57:44 +0000 | [diff] [blame] | 86 | - pod2man --center=BusyBox --release="version $(VERSION)" \ |
Eric Andersen | 19f8620 | 2001-02-17 00:42:47 +0000 | [diff] [blame] | 87 | $< > $@ |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 88 | |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 89 | docs/BusyBox.html: docs/busybox.net/BusyBox.html |
Eric Andersen | 1cf8166 | 2001-02-17 15:55:15 +0000 | [diff] [blame] | 90 | - mkdir -p docs |
Eric Andersen | e2f6e12 | 2000-12-01 19:55:04 +0000 | [diff] [blame] | 91 | -@ rm -f docs/BusyBox.html |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 92 | -@ ln -s busybox.net/BusyBox.html docs/BusyBox.html |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 93 | |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 94 | docs/busybox.net/BusyBox.html: docs/busybox.pod |
| 95 | -@ mkdir -p docs/busybox.net |
Eric Andersen | 19f8620 | 2001-02-17 00:42:47 +0000 | [diff] [blame] | 96 | - pod2html --noindex $< > \ |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 97 | docs/busybox.net/BusyBox.html |
Eric Andersen | 3676374 | 2001-04-24 21:46:07 +0000 | [diff] [blame] | 98 | -@ rm -f pod2htm* |
Erik Andersen | 0a704e8 | 2000-05-03 03:19:06 +0000 | [diff] [blame] | 99 | |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 100 | |
| 101 | # New docs based on DOCBOOK SGML |
Eric Andersen | 488aac2 | 2000-09-24 02:42:48 +0000 | [diff] [blame] | 102 | newdoc: docs/busybox.txt docs/busybox.pdf docs/busybox/busyboxdocumentation.html |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 103 | |
| 104 | docs/busybox.txt: docs/busybox.sgml |
| 105 | @echo |
| 106 | @echo BusyBox Documentation |
| 107 | @echo |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 108 | - mkdir -p docs |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 109 | (cd docs; sgmltools -b txt busybox.sgml) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 110 | |
| 111 | docs/busybox.dvi: docs/busybox.sgml |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 112 | - mkdir -p docs |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 113 | (cd docs; sgmltools -b dvi busybox.sgml) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 114 | |
Eric Andersen | a2c83d8 | 2000-07-07 20:52:56 +0000 | [diff] [blame] | 115 | docs/busybox.ps: docs/busybox.sgml |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 116 | - mkdir -p docs |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 117 | (cd docs; sgmltools -b ps busybox.sgml) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 118 | |
Eric Andersen | a2c83d8 | 2000-07-07 20:52:56 +0000 | [diff] [blame] | 119 | docs/busybox.pdf: docs/busybox.ps |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 120 | - mkdir -p docs |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 121 | (cd docs; ps2pdf busybox.ps) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 122 | |
Eric Andersen | 488aac2 | 2000-09-24 02:42:48 +0000 | [diff] [blame] | 123 | docs/busybox/busyboxdocumentation.html: docs/busybox.sgml |
Eric Andersen | 09a34e5 | 2000-12-01 19:40:18 +0000 | [diff] [blame] | 124 | - mkdir -p docs |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 125 | (cd docs/busybox.net; sgmltools -b html ../busybox.sgml) |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 126 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 127 | |
| 128 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 129 | # The nifty new buildsystem stuff |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 130 | $(TOPDIR)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 | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 133 | $(TOPDIR)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 | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 136 | $(TOPDIR).depend: $(TOPDIR)scripts/mkdep |
| 137 | rm -f .depend .hdepend; |
| 138 | mkdir -p $(TOPDIR)include/config; |
| 139 | $(HOSTCC) $(HOSTCFLAGS) -o scripts/mkdep scripts/mkdep.c |
| 140 | scripts/mkdep -I $(TOPDIR)include -- \ |
| 141 | `find $(TOPDIR) -name \*.c -print` >> .depend; |
| 142 | scripts/mkdep -I $(TOPDIR)include -- \ |
| 143 | `find $(TOPDIR) -name \*.h -print` >> .hdepend; |
| 144 | $(MAKE) $(patsubst %,_sfdep_%,$(SUBDIRS)) _FASTDEP_ALL_SUB_DIRS="$(SUBDIRS)" ; |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 145 | @ echo -e "\n\nNow run 'make' to build BusyBox\n\n" |
| 146 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 147 | depend dep: $(TOPDIR)include/config.h $(TOPDIR).depend |
| 148 | |
Eric Andersen | 3ec5c69 | 2002-03-20 01:32:25 +0000 | [diff] [blame] | 149 | BB_SHELL := ${shell if [ -x "$$BASH" ]; then echo $$BASH; \ |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 150 | else if [ -x /bin/bash ]; then echo /bin/bash; \ |
| 151 | else echo sh; fi ; fi} |
| 152 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 153 | include/config/MARKER: depend $(TOPDIR)scripts/split-include |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 154 | scripts/split-include include/config.h include/config |
| 155 | @ touch include/config/MARKER |
| 156 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 157 | $(TOPDIR)include/config.h: |
| 158 | @if [ ! -f $(TOPDIR)include/config.h ] ; then \ |
Eric Andersen | 3cd2760 | 2001-10-24 07:58:02 +0000 | [diff] [blame] | 159 | make oldconfig; \ |
| 160 | fi; |
| 161 | |
Eric Andersen | aba7546 | 2002-04-27 00:06:47 +0000 | [diff] [blame] | 162 | $(TOPDIR).config: |
Eric Andersen | 8610f91 | 2002-06-06 13:00:47 +0000 | [diff] [blame] | 163 | @if [ ! -f $(TOPDIR).config ] ; then \ |
| 164 | cp $(TOPDIR)sysdeps/$(TARGET_OS)/defconfig $(TOPDIR).config; \ |
| 165 | fi; |
| 166 | |
| 167 | menuconfig: $(TOPDIR).config |
Eric Andersen | aba7546 | 2002-04-27 00:06:47 +0000 | [diff] [blame] | 168 | mkdir -p $(TOPDIR)include/config |
| 169 | $(MAKE) -C scripts/lxdialog all |
| 170 | $(BB_SHELL) scripts/Menuconfig sysdeps/$(TARGET_OS)/config.in |
| 171 | |
Eric Andersen | 8610f91 | 2002-06-06 13:00:47 +0000 | [diff] [blame] | 172 | config: $(TOPDIR).config |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 173 | mkdir -p $(TOPDIR)include/config |
Eric Andersen | 3ec5c69 | 2002-03-20 01:32:25 +0000 | [diff] [blame] | 174 | $(BB_SHELL) scripts/Configure sysdeps/$(TARGET_OS)/config.in |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 175 | |
Eric Andersen | 8610f91 | 2002-06-06 13:00:47 +0000 | [diff] [blame] | 176 | oldconfig: $(TOPDIR).config |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 177 | mkdir -p $(TOPDIR)include/config |
Eric Andersen | 3ec5c69 | 2002-03-20 01:32:25 +0000 | [diff] [blame] | 178 | $(BB_SHELL) scripts/Configure -d sysdeps/$(TARGET_OS)/config.in |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 179 | |
| 180 | |
| 181 | ifdef CONFIGURATION |
| 182 | ..$(CONFIGURATION): |
| 183 | @echo |
| 184 | @echo "You have a bad or nonexistent" .$(CONFIGURATION) ": running 'make" $(CONFIGURATION)"'" |
| 185 | @echo |
| 186 | $(MAKE) $(CONFIGURATION) |
| 187 | @echo |
| 188 | @echo "Successful. Try re-making (ignore the error that follows)" |
| 189 | @echo |
| 190 | exit 1 |
| 191 | |
| 192 | dummy: |
| 193 | |
Eric Andersen | 0b7d70c | 2001-08-02 20:56:16 +0000 | [diff] [blame] | 194 | else |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 195 | |
| 196 | dummy: |
| 197 | |
Eric Andersen | 0b7d70c | 2001-08-02 20:56:16 +0000 | [diff] [blame] | 198 | endif |
Eric Andersen | 19f8620 | 2001-02-17 00:42:47 +0000 | [diff] [blame] | 199 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 200 | |
| 201 | %.o: %.c |
| 202 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
| 203 | |
Eric Andersen | 19f8620 | 2001-02-17 00:42:47 +0000 | [diff] [blame] | 204 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 205 | # Testing... |
Erik Andersen | 9ffdaa6 | 2000-02-11 21:55:04 +0000 | [diff] [blame] | 206 | test tests: |
Mark Whitley | d2117e9 | 2001-03-10 00:51:29 +0000 | [diff] [blame] | 207 | # old way of doing it |
| 208 | #cd tests && $(MAKE) all |
| 209 | # new way of doing it |
| 210 | cd tests && ./tester.sh |
Erik Andersen | 9ffdaa6 | 2000-02-11 21:55:04 +0000 | [diff] [blame] | 211 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 212 | # Cleanup |
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 |
| 215 | - $(MAKE) -C scripts/lxdialog clean |
Eric Andersen | 67536ff | 2000-07-06 22:53:22 +0000 | [diff] [blame] | 216 | - rm -f docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \ |
Eric Andersen | 2423b12 | 2001-12-08 01:56:15 +0000 | [diff] [blame] | 217 | docs/busybox.net/BusyBox.html |
Eric Andersen | 5331025 | 2000-07-04 19:42:23 +0000 | [diff] [blame] | 218 | - rm -f docs/busybox.txt docs/busybox.dvi docs/busybox.ps \ |
Eric Andersen | a39342b | 2002-10-08 19:31:04 +0000 | [diff] [blame] | 219 | docs/busybox.pdf docs/busybox.pod docs/busybox.net/busybox.html \ |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 220 | docs/busybox _install pod2htm* *.gdb *.elf *~ core |
Eric Andersen | 3ec5c69 | 2002-03-20 01:32:25 +0000 | [diff] [blame] | 221 | - rm -f busybox busybox.links libbb/loop.h .config.old .hdepend |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 222 | - rm -f scripts/split-include scripts/mkdep .*config.log |
| 223 | - rm -rf include/config include/config.h |
Eric Andersen | 8771517 | 2002-07-31 03:45:05 +0000 | [diff] [blame] | 224 | - find . -name .\*.flags -exec rm -f {} \; |
| 225 | - find . -name .depend -exec rm -f {} \; |
| 226 | - find . -name \*.o -exec rm -f {} \; |
| 227 | - find . -name \*.a -exec rm -f {} \; |
Eric Andersen | cc8ed39 | 1999-10-05 16:24:54 +0000 | [diff] [blame] | 228 | |
| 229 | distclean: clean |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 230 | - rm -f busybox |
Erik Andersen | 9ffdaa6 | 2000-02-11 21:55:04 +0000 | [diff] [blame] | 231 | - cd tests && $(MAKE) distclean |
Eric Andersen | cc8ed39 | 1999-10-05 16:24:54 +0000 | [diff] [blame] | 232 | |
Erik Andersen | 0a704e8 | 2000-05-03 03:19:06 +0000 | [diff] [blame] | 233 | dist 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 | |
Eric Andersen | bdfd0d7 | 2001-10-24 05:00:29 +0000 | [diff] [blame] | 250 | |
| 251 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 252 | .PHONY: tags check depend |
| 253 | |
Mark Whitley | dd23b8b | 2000-07-10 23:00:47 +0000 | [diff] [blame] | 254 | tags: |
| 255 | ctags -R . |
Matt Kraai | 4e05da8 | 2001-11-19 19:47:56 +0000 | [diff] [blame] | 256 | |
| 257 | check: busybox |
| 258 | cd testsuite && ./runtest |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 259 | |