Annotation of embedaddon/confuse/Makefile.am, revision 1.1.1.2
1.1 misho 1: ## Process this file with automake to produce Makefile.in
2:
1.1.1.2 ! misho 3: ACLOCAL_AMFLAGS = -I m4
! 4: CLEANFILES = *~ '\#*\#'
! 5: pkgconfigdir = $(libdir)/pkgconfig
! 6: pkgconfig_DATA = libconfuse.pc
! 7: doc_DATA = README.md AUTHORS LICENSE ChangeLog.md
! 8: EXTRA_DIST = README.md LICENSE ChangeLog.md libconfuse.spec.in libconfuse.spec
1.1 misho 9:
1.1.1.2 ! misho 10: EXAMPLES =
1.1 misho 11: if ENABLE_EXAMPLES
1.1.1.2 ! misho 12: EXAMPLES += examples
1.1 misho 13: endif
1.1.1.2 ! misho 14: SUBDIRS = m4 po src $(EXAMPLES) tests doc
1.1 misho 15:
1.1.1.2 ! misho 16: ## Windows build files, for ZIP archive
! 17: BORLAND_FILES = cfgtest.bpf cfgtest.bpr config.h confuse.bpg libConfuse.bpf libConfuse.bpr
! 18: DEVCPP_FILES = cfgtest.dev config.h libConfuse.dev
! 19: MSVC6_FILES = config.h libConfuse.dsp libConfuse.dsw unistd.h
! 20: MSVS_FILES = config.h msvs.net.sln unistd.h
! 21: MSVS_CFGTEST_FILES = cfgtest.vcproj
! 22: MSVS_LIBCONFUSE_FILES = libConfuse.vcproj
! 23: MINGW_FILES = build.bat config.h Makefile
1.1 misho 24:
25: add-windows-files:
1.1.1.2 ! misho 26: @mkdir $(distdir)/windows
! 27: @mkdir $(distdir)/windows/borland
! 28: @mkdir $(distdir)/windows/devcpp
! 29: @mkdir $(distdir)/windows/msvc6
! 30: @mkdir $(distdir)/windows/msvc6/libConfuse
! 31: @mkdir $(distdir)/windows/msvs.net
! 32: @mkdir $(distdir)/windows/msvs.net/cfgtest
! 33: @mkdir $(distdir)/windows/msvs.net/libConfuse
! 34: @mkdir $(distdir)/windows/mingw
! 35: @for f in $(BORLAND_FILES); do \
1.1 misho 36: cp -f $(top_srcdir)/windows/borland/$$f $(distdir)/windows/borland/; done
1.1.1.2 ! misho 37: @for f in $(DEVCPP_FILES); do \
1.1 misho 38: cp -f $(top_srcdir)/windows/devcpp/$$f $(distdir)/windows/devcpp/; done
1.1.1.2 ! misho 39: @for f in $(MSVS_FILES); do \
1.1 misho 40: cp -f $(top_srcdir)/windows/msvs.net/$$f $(distdir)/windows/msvs.net/; done
1.1.1.2 ! misho 41: @for f in $(MSVS_CFGTEST_FILES); do \
1.1 misho 42: cp -f $(top_srcdir)/windows/msvs.net/cfgtest/$$f $(distdir)/windows/msvs.net/cfgtest/; done
1.1.1.2 ! misho 43: @for f in $(MSVS_LIBCONFUSE_FILES); do \
1.1 misho 44: cp -f $(top_srcdir)/windows/msvs.net/libConfuse/$$f $(distdir)/windows/msvs.net/libConfuse; done
1.1.1.2 ! misho 45: @for f in $(MSVC6_FILES); do \
1.1 misho 46: cp -f $(top_srcdir)/windows/msvc6/libConfuse/$$f $(distdir)/windows/msvc6/libConfuse; done
1.1.1.2 ! misho 47: @for f in $(MINGW_FILES); do \
! 48: cp -f $(top_srcdir)/windows/mingw/$$f $(distdir)/windows/mingw; done
! 49: @cp $(top_srcdir)/examples/wincfgtest.c $(distdir)/examples
! 50: @cp $(top_srcdir)/examples/wincfgtest.conf $(distdir)/examples
! 51: @cp $(top_srcdir)/examples/wincfgtest.dev $(distdir)/examples
1.1 misho 52:
53: unpack:
1.1.1.2 ! misho 54: @tar xfz $(distdir).tar.gz
1.1 misho 55:
56: zip: dist unpack add-windows-files
1.1.1.2 ! misho 57: @rm -f $(distdir).zip
! 58: @zip -qr $(distdir).zip $(distdir)
! 59: @rm -rf $(distdir)
1.1 misho 60:
61: rpm: Makefile
1.1.1.2 ! misho 62: @$(MAKE) dist
! 63: @rpmbuild -ta --clean $(distdir).tar.gz
! 64:
! 65: ## ZIP files are reserved for the Windows distribution of libConfuse
! 66: dist-zip: zip
1.1 misho 67:
1.1.1.2 ! misho 68: ## Generate MD5 checksum file
! 69: MD5 = md5sum
! 70: md5-dist:
! 71: @for file in $(DIST_ARCHIVES) $(distdir).zip; do \
! 72: $(MD5) $$file > $$file.md5; \
! 73: done
! 74:
! 75: ## Check if tagged in git
! 76: release-hook:
! 77: @if [ ! `git tag | grep v$(PACKAGE_VERSION)` ]; then \
! 78: echo; \
! 79: printf "\e[1m\e[41mCannot find release tag v$(PACKAGE_VERSION)\e[0m\n"; \
! 80: printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn; \
! 81: if [ "$$yorn" != "y" -a "$$yorn" != "Y" ]; then \
! 82: printf "OK, aborting release.\n"; \
! 83: exit 1; \
! 84: fi; \
! 85: echo; \
! 86: else \
! 87: echo; \
! 88: printf "\e[1m\e[42mFound GIT release tag v$(PACKAGE_VERSION)\e[0m\n"; \
! 89: printf "\e[1m\e[44m>>Remember to push tags!\e[0m\n"; \
! 90: echo; \
! 91: fi
! 92:
! 93: ## Target to run when building a release
! 94: release: release-hook distcheck dist-zip md5-dist
! 95: @echo
! 96: @echo "Resulting release files:"
! 97: @echo "================================================================="
! 98: @for file in $(DIST_ARCHIVES) $(distdir).zip; do \
! 99: printf "%-32s Distribution tarball\n" $$file; \
! 100: printf "%-32s " $$file.md5; cat $$file.md5 | cut -f1 -d' '; \
! 101: done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>