File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / pimd / libite / Makefile.am
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 14 09:12:58 2017 UTC (7 years, 4 months ago) by misho
Branches: pimd, MAIN
CVS tags: v2_3_2, HEAD
libite

    1: ACLOCAL_AMFLAGS     = -I m4
    2: 
    3: lib_LTLIBRARIES     = libite.la
    4: pkginclude_HEADERS  = lite.h queue.h conio.h tree.h
    5: libite_la_SOURCES   = chomp.c copyfile.c dir.c fexist.c fisdir.c fmode.c fsendfile.c	\
    6: 			ifconfig.c lfile.c makepath.c pidfile.c pidfilefn.c progress.c	\
    7: 			rsync.c strlcpy.c strlcat.c strtonum.c tempfile.c tree.c
    8: 
    9: libite_la_CPPFLAGS  = -D_GNU_SOURCE
   10: libite_la_CFLAGS    = -W -Wall -Wextra
   11: libite_la_LDFLAGS   = $(AM_LDFLAGS) -version-info 2:1:0
   12: 
   13: pkgconfigdir        = $(libdir)/pkgconfig
   14: pkgconfig_DATA      = libite.pc
   15: doc_DATA            = README.md LICENSE
   16: EXTRA_DIST          = README.md LICENSE ChangeLog.md
   17: 
   18: ## Generate MD5 checksum file
   19: MD5 = md5sum
   20: md5-dist:
   21: 	@for file in $(DIST_ARCHIVES); do	\
   22: 		$(MD5) $$file > $$file.md5;	\
   23: 	done
   24: 
   25: ## Check if tagged in git
   26: release-hook:
   27: 	if [ ! `git tag | grep $(PACKAGE_VERSION)` ]; then				\
   28: 		echo;									\
   29: 		printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n";	\
   30: 		printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn;			\
   31: 		if [ "$$yorn" != "y" -a "$$yorn" != "Y" ]; then				\
   32: 			printf "OK, aborting release.\n";				\
   33: 			exit 1;								\
   34: 		fi;									\
   35: 		echo;									\
   36: 	else										\
   37: 		echo;									\
   38: 		printf "\e[1m\e[42mFound GIT release tag $(PACKAGE_VERSION)\e[0m\n";	\
   39: 		printf "\e[1m\e[44m>>Remember to push tags!\e[0m\n";			\
   40: 		echo;									\
   41: 	fi
   42: 
   43: ## Target to run when building a release
   44: release: dist release-hook md5-dist
   45: 	@for file in $(DIST_ARCHIVES); do						\
   46: 		printf "$$file    \tDistribution tarball\n";				\
   47: 		printf "$$file.md5\t"; cat $$file.md5 | cut -f1 -d' ';			\
   48: 		mv $$file* ../;								\
   49: 	done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>