cake
/
libp7
Archived
1
0
Fork 1

Author -> Maintainer

This commit is contained in:
Thomas Touhey 2017-01-05 23:04:17 +01:00
parent e24b402fdc
commit cf90870428
4 changed files with 13 additions and 18 deletions

View File

@ -77,18 +77,14 @@ dist: mrproper
getname:
@echo lib$(NAME)
# Get the project author.
getauthor:
@echo $(AUTHOR)
# Get the project author email.
getmail:
@echo $(AUTHOR_MAIL)
# Get the project version.
getversion:
@echo $(VERSION)
# Get the maintainer.
getmaintainer:
@echo "$(MAINTAINER_NAME) <$(MAINTAINER_MAIL)>"
.PHONY: getname getauthor getmail getversion
#******************************************************************************#
# Library-specific targets #

View File

@ -18,9 +18,9 @@
NAME := p7
DESCRIPTION := Library for communicating with CASIO calculators
# Author information
AUTHOR := Thomas \"Cakeisalie5\" Touhey
AUTHOR_MAIL := thomas@touhey.fr
# Maintainer information
MAINTAINER_NAME := Thomas \"Cakeisalie5\" Touhey
MAINTAINER_MAIL := thomas@touhey.fr
# Project license
LICENSE := GPLv2
@ -79,7 +79,7 @@ endif
CFLAGS := -I $(INCDIR) $(CWARN) -std=gnu11 -fPIC -O2 \
$(if $(USE_LIBUSB),,-Dno_libusb) \
-D LOGLEVEL="ll_$(LOG_LEVEL)" -D INIT_TRIES="$(INIT_TRIES)" \
-D AUTHOR="$(AUTHOR)" -D AUTHOR_MAIL="$(AUTHOR_MAIL)" \
-D MAINTAINER="$(MAINTAINER_NAME) <$(MAINTAINER_MAIL)>" \
-D LICENSE="$(LICENSE)" -D VERSION="$(VERSION)" \
$(if $(USE_LIBUSB),\
$(shell $(PKGCONFIG) --cflags libusb-1.0 2>/dev/null)) \

9
configure vendored
View File

@ -7,9 +7,8 @@ cd "$(dirname "$0")"
name="$(make -s getname)"
version="$(make -s getversion)"
# Author
author_name="$(make -s getauthor)"
author="$author <$(make -s getmail)>"
# Maintainer
maintainer="$(make -s getmaintainer)"
# Target
target=""
@ -78,7 +77,7 @@ Fine tuning of the installation directories:
--includedir=DIR include files for the compiler [$includedir]
--mandir=DIR man root [$mandir]
Report bugs to ${author}.
Report bugs to ${maintainer}.
EOF
exit 0
}
@ -89,7 +88,7 @@ exit 0
version() {
cat <<EOF
${name} configure script v${version}
Hand-written by ${author_name}.
Hand-written by Thomas "Cakeisalie5" Touhey.
This configure script is free software.
There is NO warranty; not even for MERCHANTABILITY or

View File

@ -34,7 +34,7 @@
static const char version_message[] =
"libp7 v" QUOTE(VERSION) " (licensed under " QUOTE(LICENSE) ")\n"
"Made by " QUOTE(AUTHOR) " <" QUOTE(AUTHOR_MAIL) ">.\n"
"Maintained by " QUOTE(MAINTAINER) ">.\n"
"\n"
"Compiled with the '" LLS "' loglevel.\n"
"\n"