From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id r96NH5QT008195 for ; Sun, 6 Oct 2013 19:17:05 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id r96NH5s6023556; Sun, 6 Oct 2013 19:17:05 -0400 (EDT) Date: Sun, 6 Oct 2013 19:17:05 -0400 (EDT) Message-Id: <201310062317.r96NH5s6023556@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Put VERSION into config.h. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Put VERSION into config.h. This makes life easier for downstream maintainers having more than one Makefile, for example DragonFly and FreeBSD. Suggested by Franco Fichtner . Tags: ---- VERSION_1_12 Modified Files: -------------- mdocml: Makefile Revision Data ------------- Index: Makefile =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v retrieving revision 1.395.2.7 retrieving revision 1.395.2.8 diff -LMakefile -LMakefile -u -p -r1.395.2.7 -r1.395.2.8 --- Makefile +++ Makefile @@ -31,7 +31,7 @@ STATIC = -static # Linux requires -pthread to statically link with libdb. #STATIC += -pthread -CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\"" +CFLAGS += -g -DHAVE_CONFIG_H CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings PREFIX = /usr/local WWWPREFIX = /var/www @@ -390,6 +390,7 @@ config.h: config.h.pre config.h.post rm -f config.log ( cat config.h.pre; \ echo; \ + echo '#define VERSION "$(VERSION)"'; \ if $(CC) $(CFLAGS) -Werror -Wno-unused -o test-fgetln test-fgetln.c >> config.log 2>&1; then \ echo '#define HAVE_FGETLN'; \ rm test-fgetln; \ -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv