2009-08-17 19:07:20 +02:00
|
|
|
include vars.mk
|
|
|
|
|
2010-01-13 19:32:25 +01:00
|
|
|
SUBDIRS = include lib bin
|
2009-08-17 19:07:20 +02:00
|
|
|
|
2010-01-23 02:37:19 +01:00
|
|
|
ifdef BUILD_API_DOCS
|
|
|
|
SUBDIRS += doc
|
|
|
|
endif
|
|
|
|
|
2009-08-17 19:07:20 +02:00
|
|
|
.PHONY: all
|
|
|
|
all:
|
2009-11-19 06:03:37 +01:00
|
|
|
@for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir || exit 1; \
|
2009-10-30 17:23:45 +01:00
|
|
|
done
|
2009-08-17 19:07:20 +02:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
2009-11-19 06:03:37 +01:00
|
|
|
@for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir install || exit 1; \
|
2009-08-17 19:07:20 +02:00
|
|
|
done
|
|
|
|
@echo
|
2010-01-24 13:59:58 +01:00
|
|
|
@echo "Binaries have been installed into $(DESTDIR)$(SBINDIR)."
|
|
|
|
@echo "Librares have been installed into $(DESTDIR)$(LIBDIR)."
|
2009-08-17 19:07:20 +02:00
|
|
|
@echo
|
|
|
|
@echo "WARNING: Don't forget to rerun ldconfig(1)."
|
|
|
|
@echo
|
|
|
|
|
2009-08-21 11:17:58 +02:00
|
|
|
.PHONY: uninstall
|
2009-08-17 19:07:20 +02:00
|
|
|
uninstall:
|
2009-11-19 06:03:37 +01:00
|
|
|
@for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir uninstall || exit 1; \
|
2009-10-18 11:15:39 +02:00
|
|
|
done
|
2009-08-17 19:07:20 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2009-11-19 06:03:37 +01:00
|
|
|
@for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir clean || exit 1; \
|
2009-08-17 19:07:20 +02:00
|
|
|
done
|