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
|
|
|
|
2020-02-03 08:14:10 +01:00
|
|
|
install: all
|
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
|
2020-04-20 19:28:59 +02:00
|
|
|
install -d $(DESTDIR)$(SHAREDIR)/licenses/xbps
|
|
|
|
install -m644 ./LICENSE $(DESTDIR)$(SHAREDIR)/licenses/xbps
|
|
|
|
install -m644 ./LICENSE.3RDPARTY $(DESTDIR)$(SHAREDIR)/licenses/xbps
|
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
|
|
|
|
2020-02-03 08:14:10 +01:00
|
|
|
check: all
|
2019-04-19 14:49:17 +02:00
|
|
|
-rm -f result.db*
|
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
|