mirror of
https://github.com/0intro/wmii
synced 2025-01-22 10:02:23 +03:00
Add a default label to the argument checking in wmiir
This commit is contained in:
parent
5d5ba6e283
commit
44c9792a4c
@ -290,6 +290,9 @@ main(int argc, char *argv[]) {
|
||||
exit(0);
|
||||
case 'a':
|
||||
address = EARGF(usage());
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
}ARGEND;
|
||||
|
||||
cmd = EARGF(usage());
|
||||
|
39
mk/dir.mk
39
mk/dir.mk
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user