9673c4bd09
- A configuration file "xbps-conf.plist" replaces the (un)register target in xbps-repo(8) and (un)set-prop in xbps-bin(8). For now, you can set the repositories and prefered virtual packages. - New package pattern matching code from NetBSD. Supports more ways of matching patterns in packages. - Multiple bugs fixed in virtual packages related matching code. --HG-- rename : LICENSE => COPYING
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
-include config.mk
|
|
|
|
SUBDIRS = include lib bin etc
|
|
|
|
ifdef BUILD_API_DOCS
|
|
SUBDIRS += doc
|
|
endif
|
|
|
|
.PHONY: all
|
|
all:
|
|
@for dir in $(SUBDIRS); do \
|
|
$(MAKE) -C $$dir || exit 1; \
|
|
done
|
|
|
|
.PHONY: install
|
|
install:
|
|
@for dir in $(SUBDIRS); do \
|
|
$(MAKE) -C $$dir install || exit 1; \
|
|
done
|
|
@echo
|
|
@echo "Binaries have been installed into $(DESTDIR)$(SBINDIR)."
|
|
@echo "Librares have been installed into $(DESTDIR)$(LIBDIR)."
|
|
@echo "Configuration file has been installed into $(DESTDIR)$(ETCDIR)."
|
|
@echo
|
|
@echo "WARNING: Don't forget to rerun ldconfig(1) if $(LIBDIR) is not"
|
|
@echo "WARNING: in your ld.so.conf by default."
|
|
@echo
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
@for dir in $(SUBDIRS); do \
|
|
$(MAKE) -C $$dir uninstall || exit 1; \
|
|
done
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@for dir in $(SUBDIRS); do \
|
|
$(MAKE) -C $$dir clean || exit 1; \
|
|
done
|
|
-rm -f config.h config.mk
|
|
|
|
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
|