2010-05-20 02:08:27 +05:30
|
|
|
-include config.mk
|
2009-08-17 22:37:20 +05:30
|
|
|
|
2011-06-04 17:07:53 +05:30
|
|
|
SUBDIRS = include lib bin etc
|
2009-08-17 22:37:20 +05:30
|
|
|
|
2010-01-23 07:07:19 +05:30
|
|
|
ifdef BUILD_API_DOCS
|
|
|
|
SUBDIRS += doc
|
|
|
|
endif
|
|
|
|
|
2009-08-17 22:37:20 +05:30
|
|
|
.PHONY: all
|
|
|
|
all:
|
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
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
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
|
|
|
|
|
2009-08-21 14:47:58 +05:30
|
|
|
.PHONY: uninstall
|
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
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
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
|
2010-05-20 02:08:27 +05:30
|
|
|
-rm -f config.h config.mk
|
2010-10-23 21:38:33 +05:30
|
|
|
|
|
|
|
dist:
|
|
|
|
ifndef REV
|
|
|
|
@echo "Please specify revision/tag with REV, i.e:"
|
|
|
|
@echo " > make REV=0.6.1 dist"
|
|
|
|
@exit 1
|
|
|
|
endif
|
|
|
|
@echo "Building distribution tarball for revision/tag: $(REV) ..."
|
|
|
|
-@hg archive --rev $(REV) --type tgz ~/xbps-$(REV).tar.gz
|