2010-05-20 02:08:27 +05:30
|
|
|
-include config.mk
|
2009-08-17 22:37:20 +05:30
|
|
|
|
2014-11-06 14:28:04 +05:30
|
|
|
SUBDIRS = include lib bin 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
|
|
|
|
2020-02-03 12:44:10 +05:30
|
|
|
install: all
|
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
|
2020-04-20 22:58:59 +05:30
|
|
|
install -d $(DESTDIR)$(SHAREDIR)/licenses/xbps
|
|
|
|
install -m644 ./LICENSE $(DESTDIR)$(SHAREDIR)/licenses/xbps
|
|
|
|
install -m644 ./LICENSE.3RDPARTY $(DESTDIR)$(SHAREDIR)/licenses/xbps
|
2009-08-17 22:37:20 +05:30
|
|
|
|
|
|
|
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
|
|
|
|
2020-02-03 12:44:10 +05:30
|
|
|
check: all
|
2019-04-19 18:19:17 +05:30
|
|
|
-rm -f result.db*
|
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
|
2016-02-06 14:01:13 +05:30
|
|
|
-rm -f result* config.mk _ccflag.{,c,err}
|
2014-10-06 15:58:26 +05:30
|
|
|
|
|
|
|
.PHONY: all install uninstall check clean
|