Blame | Last modification | View Log
# dist.mk - make dist# Lots of this is taken directly from Automake.# User can override this.# Valid values are gzip bzip2 zip# Automake supplies compress and shar as well, but I suspect those are# obsolete and I have left them out.#DIST_FORMATS ?= bzip2# Fun uses of wildcard. Some of these are probably bogus.# install-sh -- should be legacy, probably, but configure looks for it.# FIXME: common files, quagmire files, texinfo ... anything else?# DISTFILES = $(quagmire/dist_sources) $(quagmire/dist-files) $(EXTRA_DIST)distdir = openzwave-$(VERSION).$(VERSION_REV)#$(if $(PACKAGE_TARNAME),$(if $(PACKAGE_VERSION),$(PACKAGE_TARNAME)-$(PACKAGE_VERSION),$(error PACKAGE_VERSION not defined)),$(error PACKAGE_TARNAME not defined))am__remove_distdir = \{ test ! -d $(distdir) \|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \&& rm -fr $(distdir); }; }# FIXME: gnits-like NEWS checkingdistdir: cpp/src/vers.cpp$(am__remove_distdir)mkdir -p $(distdir)@list='$(DISTFILES)'; for file in $$list; do \if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \if test -d $$d/$$file; then \dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \fi; \cp -pR $$d/$$file $(distdir)$$dir || exit 1; \else \mkdir -p `dirname $(distdir)/$$file`; \test -f $(distdir)/$$file \|| cp -p $$d/$$file $(distdir)/$$file \|| exit 1; \fi; \done-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \! -type d ! -perm -400 -exec chmod a+r {} \; -o \! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \|| chmod -R a+r $(distdir).PHONY: distdirGZIP_ENV = --best# FIXME: gnu tar dependencydist-gzip: distdirtar chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz.PHONY: dist-gzip# FIXME: gnu tar dependencydist-bzip2: distdirtar chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2.PHONY: dist-bzip2dist-zip: distdirrm -f $(distdir).zipzip -rq $(distdir).zip $(distdir).PHONY: dist-zipdist: $(addprefix dist-,$(DIST_FORMATS))$(if $(DIST_FORMATS),,$(error DIST_FORMATS is empty))$(am__remove_distdir).PHONY: distdistcheck-hook:echo $(BUILDDIR)mkdir -p ../$(BUILDDIR)/cpp/build/mkdir -p ../$(BUILDDIR)/cpp/examples/MinOZW/cp Makefile ../$(BUILDDIR)cp cpp/build/support.mk ../$(BUILDDIR)/cpp/build/cp cpp/build/Makefile ../$(BUILDDIR)/cpp/build/cp dist.mk ../$(BUILDDIR)cp distfiles.mk ../$(BUILDDIR)cp cpp/examples/MinOZW/Makefile ../$(BUILDDIR)/cpp/examples/MinOZW/.PHONY: distcheck-hookDISTCHECK_CONFIGURE_FLAGS ?=# FIXME: should 'make dvi' in the check. should copy over commentary# from automake.# FIXME: support DIST_ARCHIVES stuff from automake as welldistcheck:$(MAKE) DIST_FORMATS=bzip2 distbunzip2 -c $(distdir).tar.bz2 | tar xf -chmod -R a-w $(distdir); chmod a+w $(distdir)mkdir $(distdir)/_buildmkdir $(distdir)/_instchmod a-w $(distdir)dc_install_base=`cd $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \&& $(MAKE) distcheck-hook \&& cd $(distdir)/_build \&& $(MAKE) -C ../ \&& chmod -R a-w "$$dc_install_base" \&& rm -rf "$$dc_destdir" \&& $(MAKE) DIST_FORMATS=bzip2 dist \&& rm -rf $(distdir).tar.bz2 \&& $(MAKE) distcleancheck$(am__remove_distdir)@(echo "$(distdir).tar.bz2 archive ready for distribution".PHONY: distcheckdistuninstallcheck_listfiles = find . -type f -printdistuninstallcheck:@cd $(distuninstallcheck_dir) \&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \|| { echo "ERROR: files left after uninstall:" ; \if test -n "$(DESTDIR)"; then \echo " (check DESTDIR support)"; \fi ; \$(distuninstallcheck_listfiles) ; \exit 1; } >&2.PHONY: distuninstallcheckdistcleancheck_listfiles = find . -type f -printdistcleancheck: distclean@if test '$(srcdir)' = . ; then \echo "ERROR: distcleancheck can only run from a VPATH build" ; \exit 1 ; \fi@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \|| { echo "ERROR: files left in build directory after distclean:" ; \$(distcleancheck_listfiles) ; \exit 1; } >&2.PHONY: distcleancheck