Added clean-util, install-util and uninstall-util
Added more top-level Makefile targets for convenience and to make the new users more aware of these targets.
This commit is contained in:
parent
b1c742ff41
commit
8701303e7f
1 changed files with 11 additions and 2 deletions
13
Makefile.in
13
Makefile.in
|
|
@ -60,7 +60,7 @@ SUBDIRS= $(SUBDIRS1) $(SUBDIRS2)
|
||||||
|
|
||||||
.PHONY: doc example install-example clean-example all clean depend $(SUBDIRS) \
|
.PHONY: doc example install-example clean-example all clean depend $(SUBDIRS) \
|
||||||
install loc TAGS .config.status docker test util checkroot mrproper \
|
install loc TAGS .config.status docker test util checkroot mrproper \
|
||||||
checkinstall warnroot
|
checkinstall warnroot install-util clean-util
|
||||||
|
|
||||||
all: $(SUBDIRS2) warnroot
|
all: $(SUBDIRS2) warnroot
|
||||||
@echo "\e[32mAfter 'make install' as euid root, build example app and test utils: 'make example'\e[0m"
|
@echo "\e[32mAfter 'make install' as euid root, build example app and test utils: 'make example'\e[0m"
|
||||||
|
|
@ -110,6 +110,15 @@ doc: warnroot
|
||||||
util:
|
util:
|
||||||
cd $@; $(MAKE) $(MFLAGS)
|
cd $@; $(MAKE) $(MFLAGS)
|
||||||
|
|
||||||
|
clean-util:
|
||||||
|
cd $@; $(MAKE) $(MFLAGS) clean
|
||||||
|
|
||||||
|
install-util:
|
||||||
|
cd $@; $(MAKE) $(MFLAGS) install
|
||||||
|
|
||||||
|
uninstall-util:
|
||||||
|
cd $@; $(MAKE) $(MFLAGS) uninstall
|
||||||
|
|
||||||
clean-example:
|
clean-example:
|
||||||
for i in example util; \
|
for i in example util; \
|
||||||
do (cd $$i && $(MAKE) $(MFLAGS) clean) || exit 1; done;
|
do (cd $$i && $(MAKE) $(MFLAGS) clean) || exit 1; done;
|
||||||
|
|
@ -132,7 +141,7 @@ clean:
|
||||||
for i in $(SUBDIRS) doc example util docker; \
|
for i in $(SUBDIRS) doc example util docker; \
|
||||||
do (cd $$i && $(MAKE) $(MFLAGS) $@); done;
|
do (cd $$i && $(MAKE) $(MFLAGS) $@); done;
|
||||||
|
|
||||||
mrproper: uninstall uninstall-example clean clean-example
|
mrproper: uninstall uninstall-example uninstall-util clean clean-example clean-util
|
||||||
|
|
||||||
distclean:
|
distclean:
|
||||||
rm -f Makefile TAGS config.status config.log *~ .depend
|
rm -f Makefile TAGS config.status config.log *~ .depend
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue