2010-05-19 22:38:27 +02:00
|
|
|
-include config.mk
|
2009-08-17 19:07:20 +02:00
|
|
|
|
2014-11-06 09:58:04 +01:00
|
|
|
SUBDIRS = include lib bin data
|
2009-08-17 19:07:20 +02:00
|
|
|
|
2010-01-23 02:37:19 +01:00
|
|
|
ifdef BUILD_API_DOCS
|
|
|
|
SUBDIRS += doc
|
|
|
|
endif
|
|
|
|
|
2012-03-12 15:23:04 +01:00
|
|
|
ifdef BUILD_TESTS
|
|
|
|
SUBDIRS += tests
|
|
|
|
endif
|
|
|
|
|
2009-08-17 19:07:20 +02:00
|
|
|
all:
|
2014-01-20 18:50:33 +01:00
|
|
|
@if test ! -e config.mk; then \
|
2013-02-01 14:59:32 +01:00
|
|
|
echo "You didn't run ./configure ... exiting."; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
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
|
|
|
|
|
|
|
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)."
|
2011-06-04 13:37:53 +02:00
|
|
|
@echo "Configuration file has been installed into $(DESTDIR)$(ETCDIR)."
|
2009-08-17 19:07:20 +02:00
|
|
|
@echo
|
2011-06-04 13:37:53 +02:00
|
|
|
@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 19:07:20 +02:00
|
|
|
@echo
|
|
|
|
|
|
|
|
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
|
|
|
|
2014-10-06 12:28:26 +02:00
|
|
|
check:
|
2014-10-06 12:37:04 +02:00
|
|
|
@./run-tests
|
2014-10-06 12:28:26 +02:00
|
|
|
|
2009-08-17 19:07:20 +02:00
|
|
|
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
|
2016-02-06 09:31:13 +01:00
|
|
|
-rm -f result* config.mk _ccflag.{,c,err}
|
2014-10-06 12:28:26 +02:00
|
|
|
|
|
|
|
.PHONY: all install uninstall check clean
|