mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
590 B
38 lines
590 B
|
|
modules = $(filter-out $(wildcard Makefile* README doc), \
|
|
$(wildcard *) )
|
|
|
|
.PHONY: all
|
|
all: modules
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
-@rm -f *.so
|
|
-@for r in $(modules) "" ; do \
|
|
if [ -n "$$r" ]; then \
|
|
echo "" ; \
|
|
echo "" ; \
|
|
$(MAKE) -C $$r clean ; \
|
|
fi ; \
|
|
done
|
|
|
|
.PHONY: modules
|
|
modules:
|
|
-@for r in $(modules) "" ; do \
|
|
if [ -n "$$r" ]; then \
|
|
echo "" ; \
|
|
echo "" ; \
|
|
$(MAKE) -C $$r all; \
|
|
fi ; \
|
|
done
|
|
|
|
.PHONY: install
|
|
install:
|
|
-@for r in $(modules) "" ; do \
|
|
if [ -n "$$r" ]; then \
|
|
echo "" ; \
|
|
echo "" ; \
|
|
$(MAKE) -C $$r install; \
|
|
fi ; \
|
|
done
|