Add a default label to the argument checking in wmiir

This commit is contained in:
Kris Maglione 2007-03-26 15:46:37 -04:00
parent 5d5ba6e283
commit 44c9792a4c
2 changed files with 17 additions and 25 deletions

View File

@ -290,6 +290,9 @@ main(int argc, char *argv[]) {
exit(0);
case 'a':
address = EARGF(usage());
break;
default:
usage();
}ARGEND;
cmd = EARGF(usage());

View File

@ -1,33 +1,22 @@
MKSUBDIR = targ=$@; \
for i in ${DIRS}; do \
if [ ! -d $$i ]; then \
echo Skipping nonexistent directory: $$i 1>&2; \
else \
echo MAKE $${targ\#d} ${BASE}$$i/; \
(cd $$i && ${MAKE} BASE="${BASE}$$i/" $${targ\#d}) || exit $?; \
fi; \
done
dall:
for i in ${DIRS}; do \
if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
echo MAKE all ${BASE}$$i/; \
(cd $$i && ${MAKE} BASE="${BASE}$$i/" all) || exit $?; \
done
${MKSUBDIR}
dclean:
for i in ${DIRS}; do \
if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
echo MAKE clean ${BASE}$$i/; \
(cd $$i && ${MAKE} BASE="${BASE}$$i/" clean) || exit $?; \
done
${MKSUBDIR}
dinstall:
for i in ${DIRS}; do \
if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
echo MAKE install ${BASE}$$i/; \
(cd $$i && ${MAKE} BASE="${BASE}$$i/" install) || exit $?; \
done
${MKSUBDIR}
duninstall:
for i in ${DIRS}; do \
if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
echo MAKE uninstall ${BASE}$$i/; \
(cd $$i && ${MAKE} BASE="${BASE}$$i/" uninstall) || exit $?; \
done
${MKSUBDIR}
ddepend:
for i in ${DIRS}; do \
if [ ! -d $$i ]; then echo Skipping nonexistent directory: $$i 1>&2; continue; fi; \
echo MAKE depend ${BASE}$$i/; \
(cd $$i && ${MAKE} BASE="${BASE}$$i/" depend) || exit $?; \
done
${MKSUBDIR}
all: dall
clean: dclean