File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libnet / Makefile.am
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Sep 27 11:11:37 2023 UTC (8 months, 2 weeks ago) by misho
Branches: libnet, MAIN
CVS tags: v1_2p1, HEAD
Version 1.2p1

    1: #
    2: # Libnet automake information file
    3: # Copyright (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com>
    4: # All rights reserved.
    5: #
    6: DISTCHECK_CONFIGURE_FLAGS = --enable-doxygen-doc --disable-doxygen-html --disable-samples
    7: ACLOCAL_AMFLAGS           = -I m4 ${ACLOCAL_FLAGS}
    8: 
    9: bin_SCRIPTS    = libnet-config
   10: pkgconfigdir   = $(libdir)/pkgconfig
   11: pkgconfig_DATA = libnet.pc
   12: dist_doc_DATA  = README.md ChangeLog.md LICENSE
   13: EXTRA_DIST     = README.win32 autogen.sh libnet-config.in
   14: SUBDIRS        = include src win32
   15: 
   16: if ENABLE_SAMPLES
   17: SUBDIRS       += sample
   18: endif
   19: 
   20: if ENABLE_DOXYGEN
   21: SUBDIRS       += doc
   22: 
   23: #
   24: # Doxygen rules from m4/ax_prog_doxygen.m4
   25: # 
   26: @DX_RULES@
   27: 
   28: doc: doxygen-doc
   29: 	$(AM_V_GEN)cd $(DX_DOCDIR) && ./fixmanpages && cd -
   30: 
   31: ## The distribution should include man pages, which are generated
   32: dist-hook: doc
   33: else
   34: doc:
   35: 	@echo "Doxygen documentation (html + man) disabled, skipping ..."
   36: endif
   37: 
   38: ## Generate MD5 checksum file
   39: MD5 = md5sum
   40: md5-dist:
   41: 	@for file in $(DIST_ARCHIVES); do		\
   42: 		$(MD5) $$file > $$file.md5;		\
   43: 	done
   44: 
   45: ## Check if tagged in git
   46: release-hook:
   47: 	@if [ ! `git tag | grep v$(PACKAGE_VERSION)` ]; then				\
   48: 		echo;									\
   49: 		printf "\e[1m\e[41mCannot find release tag v$(PACKAGE_VERSION)\e[0m\n";	\
   50: 		printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn;			\
   51: 		if [ "$$yorn" != "y" -a "$$yorn" != "Y" ]; then				\
   52: 			printf "OK, aborting release.\n";				\
   53: 			exit 1;								\
   54: 		fi;									\
   55: 		echo;									\
   56: 	else										\
   57: 		echo;									\
   58: 		printf "\e[1m\e[42mFound GIT release tag v$(PACKAGE_VERSION)\e[0m\n";	\
   59: 		printf "\e[1m\e[44m>>Remember to push tags!\e[0m\n";			\
   60: 		echo;									\
   61: 	fi
   62: 
   63: ## Target to run when building a release
   64: release: doc distcheck release-hook md5-dist
   65: 	@echo
   66: 	@echo "Resulting release files:"
   67: 	@echo "================================================================="
   68: 	@for file in $(DIST_ARCHIVES); do						\
   69: 		printf "%-32s Distribution tarball\n" $$file;				\
   70: 		printf "%-32s " $$file.md5; cat $$file.md5 | cut -f1 -d' ';		\
   71: 		mv $$file* ../;								\
   72: 	done
   73: 
   74: # (GNU make only) Unless we say otherwise, spare us the
   75: # “Entering/Leaving directory ...” messages
   76: GNUMAKEFLAGS = $(if $(value VERBOSE),,--no-print-directory)

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