2010-05-20 02:08:27 +05:30
|
|
|
-include config.mk
|
2009-08-17 22:37:20 +05:30
|
|
|
|
2012-01-17 21:56:18 +05:30
|
|
|
SUBDIRS = include lib bin etc data
|
2009-08-17 22:37:20 +05:30
|
|
|
|
2010-01-23 07:07:19 +05:30
|
|
|
ifdef BUILD_API_DOCS
|
|
|
|
SUBDIRS += doc
|
|
|
|
endif
|
|
|
|
|
2012-03-12 19:53:04 +05:30
|
|
|
ifdef BUILD_TESTS
|
|
|
|
SUBDIRS += tests
|
|
|
|
endif
|
|
|
|
|
2009-08-17 22:37:20 +05:30
|
|
|
all:
|
2014-01-20 23:20:33 +05:30
|
|
|
@if test ! -e config.mk; then \
|
2013-02-01 19:29:32 +05:30
|
|
|
echo "You didn't run ./configure ... exiting."; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2009-11-19 10:33:37 +05:30
|
|
|
@for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir || exit 1; \
|
2009-10-30 21:53:45 +05:30
|
|
|
done
|
2009-08-17 22:37:20 +05:30
|
|
|
|
|
|
|
install:
|
2009-11-19 10:33:37 +05:30
|
|
|
@for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir install || exit 1; \
|
2009-08-17 22:37:20 +05:30
|
|
|
done
|
|
|
|
@echo
|
2010-01-24 18:29:58 +05:30
|
|
|
@echo "Binaries have been installed into $(DESTDIR)$(SBINDIR)."
|
|
|
|
@echo "Librares have been installed into $(DESTDIR)$(LIBDIR)."
|
2011-06-04 17:07:53 +05:30
|
|
|
@echo "Configuration file has been installed into $(DESTDIR)$(ETCDIR)."
|
2009-08-17 22:37:20 +05:30
|
|
|
@echo
|
2011-06-04 17:07:53 +05:30
|
|
|
@echo "WARNING: Don't forget to rerun ldconfig(1) if $(LIBDIR) is not"
|
|
|
|
@echo "WARNING: in your ld.so.conf by default."
|
2009-08-17 22:37:20 +05:30
|
|
|
@echo
|
|
|
|
|
|
|
|
uninstall:
|
2009-11-19 10:33:37 +05:30
|
|
|
@for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir uninstall || exit 1; \
|
2009-10-18 14:45:39 +05:30
|
|
|
done
|
2009-08-17 22:37:20 +05:30
|
|
|
|
2014-10-06 15:58:26 +05:30
|
|
|
check:
|
2014-10-06 16:07:04 +05:30
|
|
|
@./run-tests
|
2014-10-06 15:58:26 +05:30
|
|
|
|
2009-08-17 22:37:20 +05:30
|
|
|
clean:
|
2009-11-19 10:33:37 +05:30
|
|
|
@for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir clean || exit 1; \
|
2009-08-17 22:37:20 +05:30
|
|
|
done
|
2014-01-20 23:20:33 +05:30
|
|
|
-rm -f config.mk _ccflag.{,c,err}
|
2014-10-06 15:58:26 +05:30
|
|
|
|
|
|
|
.PHONY: all install uninstall check clean
|