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
This commit is contained in:
Erik Andersen 2000-05-03 03:19:06 +00:00
parent a19bc64653
commit 0a704e8ff6
5 changed files with 20 additions and 50 deletions

View File

@ -99,12 +99,28 @@ ifdef BB_INIT_SCRIPT
CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"'
endif endif
all: busybox busybox.links all: busybox busybox.links doc
doc: BusyBox.txt BusyBox.1 BusyBox.html
BusyBox.txt: docs/busybox.pod
@echo
@echo BusyBox Documentation
@echo
pod2text docs/busybox.pod > BusyBox.txt
BusyBox.1: docs/busybox.pod
pod2man --center=BusyBox --release="version $(VERSION)" docs/busybox.pod > BusyBox.1
BusyBox.html: docs/busybox.pod
pod2html docs/busybox.pod > BusyBox.html
- rm -f pod2html*
clean:
busybox: $(OBJECTS) busybox: $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES) $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES)
$(STRIP) $(STRIP)
( cd docs ; $(MAKE) )
busybox.links: busybox.def.h busybox.links: busybox.def.h
- ./busybox.mkll | sort >$@ - ./busybox.mkll | sort >$@
@ -119,6 +135,7 @@ clean:
- rm -f busybox.links *~ *.o core - rm -f busybox.links *~ *.o core
- rm -rf _install - rm -rf _install
- cd tests && $(MAKE) clean - cd tests && $(MAKE) clean
- rm -f BusyBox.html BusyBox.1 BusyBox.txt pod2html*
distclean: clean distclean: clean
- rm -f busybox - rm -f busybox
@ -127,8 +144,7 @@ distclean: clean
install: busybox busybox.links install: busybox busybox.links
./install.sh $(PREFIX) ./install.sh $(PREFIX)
dist release: distclean dist release: distclean doc
( cd docs ; $(MAKE) )
cd ..; \ cd ..; \
rm -rf busybox-$(VERSION); \ rm -rf busybox-$(VERSION); \
cp -a busybox busybox-$(VERSION); \ cp -a busybox busybox-$(VERSION); \

View File

@ -181,9 +181,6 @@
// Enable support for a real /etc/mtab file instead of /proc/mounts // Enable support for a real /etc/mtab file instead of /proc/mounts
//#define BB_FEATURE_MOUNT_MTAB_SUPPORT //#define BB_FEATURE_MOUNT_MTAB_SUPPORT
// //
// Enable support for remounting filesystems
#define BB_FEATURE_REMOUNT
//
// Enable support for mounting remote NFS volumes // Enable support for mounting remote NFS volumes
//#define BB_FEATURE_NFSMOUNT //#define BB_FEATURE_NFSMOUNT
// //
@ -236,12 +233,6 @@
#endif #endif
#endif #endif
// //
#ifdef BB_INIT
#ifndef BB_FEATURE_REMOUNT
#define BB_FEATURE_REMOUNT
#endif
#endif
//
#ifdef BB_FEATURE_LINUXRC #ifdef BB_FEATURE_LINUXRC
#ifndef BB_INIT #ifndef BB_INIT
#define BB_INIT #define BB_INIT

View File

@ -1,21 +0,0 @@
# busybox/docs/Makefile - Create the documentation
# ------------------------
# Copyright (C) 2000 Erik Andersen <andersee@debian.org> GPL
all: clean doc
doc:
@echo
@echo BusyBox Documentation
@echo
pod2html busybox.pod > ../BusyBox.html
@rm pod2html-*
pod2man --center=BusyBox --release="version $(VERSION)" busybox.pod > ../BusyBox.1
pod2text busybox.pod > ../BusyBox.txt
@rm -f pod2html*
clean:
@rm -f ../BusyBox.html ../BusyBox.1 ../BusyBox.txt pod2html*
distclean: clean

View File

@ -37,9 +37,7 @@ static const char umount_usage[] =
#else #else
"\n" "\n"
#endif #endif
#ifdef BB_FEATURE_REMOUNT
"\t-r:\tTry to remount devices as read-only if mount is busy\n" "\t-r:\tTry to remount devices as read-only if mount is busy\n"
#endif
#if defined BB_FEATURE_MOUNT_LOOP #if defined BB_FEATURE_MOUNT_LOOP
"\t-f:\tDo not free loop device (if a loop device has been used)\n" "\t-f:\tDo not free loop device (if a loop device has been used)\n"
#endif #endif
@ -60,9 +58,7 @@ static int freeLoop = TRUE;
#endif #endif
static int useMtab = TRUE; static int useMtab = TRUE;
static int umountAll = FALSE; static int umountAll = FALSE;
#if defined BB_FEATURE_REMOUNT
static int doRemount = FALSE; static int doRemount = FALSE;
#endif
extern const char mtab_file[]; /* Defined in utility.c */ extern const char mtab_file[]; /* Defined in utility.c */
@ -180,7 +176,6 @@ static int do_umount(const char *name, int useMtab)
/* this was a loop device, delete it */ /* this was a loop device, delete it */
del_loop(blockDevice); del_loop(blockDevice);
#endif #endif
#if defined BB_FEATURE_REMOUNT
if (status != 0 && doRemount == TRUE && errno == EBUSY) { if (status != 0 && doRemount == TRUE && errno == EBUSY) {
status = mount(blockDevice, name, NULL, status = mount(blockDevice, name, NULL,
MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL);
@ -193,7 +188,6 @@ static int do_umount(const char *name, int useMtab)
blockDevice); blockDevice);
} }
} }
#endif
if (status == 0) { if (status == 0) {
#if defined BB_MTAB #if defined BB_MTAB
if (useMtab == TRUE) if (useMtab == TRUE)
@ -255,11 +249,9 @@ extern int umount_main(int argc, char **argv)
useMtab = FALSE; useMtab = FALSE;
break; break;
#endif #endif
#ifdef BB_FEATURE_REMOUNT
case 'r': case 'r':
doRemount = TRUE; doRemount = TRUE;
break; break;
#endif
case 'v': case 'v':
break; /* ignore -v */ break; /* ignore -v */
default: default:

View File

@ -37,9 +37,7 @@ static const char umount_usage[] =
#else #else
"\n" "\n"
#endif #endif
#ifdef BB_FEATURE_REMOUNT
"\t-r:\tTry to remount devices as read-only if mount is busy\n" "\t-r:\tTry to remount devices as read-only if mount is busy\n"
#endif
#if defined BB_FEATURE_MOUNT_LOOP #if defined BB_FEATURE_MOUNT_LOOP
"\t-f:\tDo not free loop device (if a loop device has been used)\n" "\t-f:\tDo not free loop device (if a loop device has been used)\n"
#endif #endif
@ -60,9 +58,7 @@ static int freeLoop = TRUE;
#endif #endif
static int useMtab = TRUE; static int useMtab = TRUE;
static int umountAll = FALSE; static int umountAll = FALSE;
#if defined BB_FEATURE_REMOUNT
static int doRemount = FALSE; static int doRemount = FALSE;
#endif
extern const char mtab_file[]; /* Defined in utility.c */ extern const char mtab_file[]; /* Defined in utility.c */
@ -180,7 +176,6 @@ static int do_umount(const char *name, int useMtab)
/* this was a loop device, delete it */ /* this was a loop device, delete it */
del_loop(blockDevice); del_loop(blockDevice);
#endif #endif
#if defined BB_FEATURE_REMOUNT
if (status != 0 && doRemount == TRUE && errno == EBUSY) { if (status != 0 && doRemount == TRUE && errno == EBUSY) {
status = mount(blockDevice, name, NULL, status = mount(blockDevice, name, NULL,
MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL);
@ -193,7 +188,6 @@ static int do_umount(const char *name, int useMtab)
blockDevice); blockDevice);
} }
} }
#endif
if (status == 0) { if (status == 0) {
#if defined BB_MTAB #if defined BB_MTAB
if (useMtab == TRUE) if (useMtab == TRUE)
@ -255,11 +249,9 @@ extern int umount_main(int argc, char **argv)
useMtab = FALSE; useMtab = FALSE;
break; break;
#endif #endif
#ifdef BB_FEATURE_REMOUNT
case 'r': case 'r':
doRemount = TRUE; doRemount = TRUE;
break; break;
#endif
case 'v': case 'v':
break; /* ignore -v */ break; /* ignore -v */
default: default: