All clixon test utilities in util/ moved to separate repo: clicon/clixon-util
This commit is contained in:
parent
631ebaa759
commit
80a10b694c
29 changed files with 166 additions and 17293 deletions
38
Makefile.in
38
Makefile.in
|
|
@ -59,11 +59,11 @@ SUBDIRS2 = apps etc yang # without include lib for circular dependency
|
|||
SUBDIRS= $(SUBDIRS1) $(SUBDIRS2)
|
||||
|
||||
.PHONY: doc example install-example clean-example all clean depend $(SUBDIRS) \
|
||||
install loc TAGS .config.status docker test util checkroot mrproper \
|
||||
checkinstall warnroot install-util clean-util
|
||||
install loc TAGS .config.status docker test checkroot mrproper \
|
||||
checkinstall 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: 'make example'\e[0m"
|
||||
|
||||
checkroot:
|
||||
@if command -v id &> /dev/null; then \
|
||||
|
|
@ -84,8 +84,6 @@ checkinstall:
|
|||
echo "\e[31mclixon must be installed first to build this target. "\
|
||||
"Run 'make'. Then run 'make install' as root.\e[0m"; exit 1; fi;
|
||||
|
||||
util: apps
|
||||
|
||||
# May cause circular include->include,lib
|
||||
$(SUBDIRS2): $(SUBDIRS1) # Cannot build app before lib (for parallel make -j)
|
||||
(cd $@ && $(MAKE) $(MFLAGS) all)
|
||||
|
|
@ -106,37 +104,25 @@ install: checkroot
|
|||
install-include:
|
||||
for i in $(SUBDIRS) doc; \
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done;
|
||||
@echo "\e[32mTo install example app and test utils: make install-example\e[0m"
|
||||
@echo "\e[32mTo install example app: make install-example\e[0m"
|
||||
|
||||
uninstall: checkroot
|
||||
for i in $(SUBDIRS) doc example util docker; \
|
||||
for i in $(SUBDIRS) doc example docker; \
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done;
|
||||
|
||||
doc: warnroot
|
||||
cd $@; $(MAKE) $(MFLAGS) $@
|
||||
|
||||
util:
|
||||
cd $@; $(MAKE) $(MFLAGS)
|
||||
|
||||
clean-util:
|
||||
cd util; $(MAKE) $(MFLAGS) clean
|
||||
|
||||
install-util: checkroot install-include
|
||||
cd util; $(MAKE) $(MFLAGS) install
|
||||
|
||||
uninstall-util:
|
||||
cd util; $(MAKE) $(MFLAGS) uninstall
|
||||
|
||||
clean-example:
|
||||
for i in example util; \
|
||||
for i in example; \
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) clean) || exit 1; done;
|
||||
|
||||
install-example: checkroot
|
||||
for i in example util; \
|
||||
for i in example; \
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) install) || exit 1; done;
|
||||
|
||||
uninstall-example: checkroot
|
||||
for i in example util; \
|
||||
for i in example; \
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) uninstall) || exit 1; done;
|
||||
|
||||
config.status: configure
|
||||
|
|
@ -146,23 +132,23 @@ configure: configure.ac
|
|||
cd $(srcdir) && autoconf
|
||||
|
||||
clean:
|
||||
for i in $(SUBDIRS) doc example util docker; \
|
||||
for i in $(SUBDIRS) doc example docker; \
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) $@); done;
|
||||
rm -f *.gcov test/*.gcov
|
||||
|
||||
# Uninstall and clean all the targets used for testing, but without cloning or
|
||||
# checking-out from git. Provides a reliabily clean slate for testing changes
|
||||
# before commit.
|
||||
mrproper: uninstall uninstall-example uninstall-util clean clean-example clean-util
|
||||
mrproper: uninstall uninstall-example clean clean-example
|
||||
|
||||
distclean:
|
||||
rm -f Makefile TAGS config.status config.log *~ .depend
|
||||
rm -rf autom4te.cache
|
||||
for i in $(SUBDIRS) doc example util docker; \
|
||||
for i in $(SUBDIRS) doc example docker; \
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) $@); done
|
||||
|
||||
# To make the example you need to run the "install-include" target first
|
||||
example: checkinstall util warnroot
|
||||
example: checkinstall warnroot
|
||||
(cd $@ && $(MAKE) $(MFLAGS) all)
|
||||
@echo "\e[36mRemember to run 'make install-example' as euid root\e[0m"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue