# HG changeset patch # User markus schnalke # Date 1393274371 -3600 # Node ID 44e4ee39c4789c1f72c492e6503afd2ce251c4f9 # Parent cd9bcd5e9027d539c5a4049644c0c6aed905c0c0 lowercase Makefile for easier typing diff -r cd9bcd5e9027 -r 44e4ee39c478 Makefile --- a/Makefile Mon Feb 24 21:38:57 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -# bday by meillo@marmaro.de - - -VERSION = 0.2 - -DOCS=COPYRIGHT COPYING ChangeLog - -# paths -PREFIX = /usr/local -BINDIR = ${PREFIX}/bin -MANDIR = ${PREFIX}/share/man - -CFLAGS=-O2 -Wall - -all: build -build: bday - -bday: bday.o - $(CC) $(LDFLAGS) bday.o -o $@ - -dist: build changelog - @mkdir -p bday-${VERSION} - @cp bday bday.c bday.1 Makefile ${DOCS} bday-${VERSION} - @tar -czhf bday-${VERSION}.tar.gz bday-${VERSION} - @rm -rf bday-${VERSION} - -changelog: - @echo generating changelog from mercurial log - @hg log -v --style changelog > ChangeLog - -install: - @echo installing executable file to ${BINDIR} - @mkdir -p ${BINDIR} - @cp bday ${BINDIR} - @chmod 755 ${BINDIR}/bday - @echo installing manual page to ${MANDIR}/man1 - @mkdir -p ${MANDIR}/man1 - @sed 's/VERSION/${VERSION}/g' ${MANDIR}/man1/bday.1 - @chmod 644 ${MANDIR}/man1/bday.1 - -uninstall: - @echo removing executable file from ${BINDIR} - @rm -f ${BINDIR}/bday - @echo removing manual page from ${MANDIR}/man1 - @rm -f ${MANDIR}/man1/bday.1 - - -clean: - rm -f *.o -realclean: clean - rm -f bday -distclean: realclean - @rm -f bday-*.tar.gz ChangeLog diff -r cd9bcd5e9027 -r 44e4ee39c478 makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile Mon Feb 24 21:39:31 2014 +0100 @@ -0,0 +1,53 @@ +# bday by meillo@marmaro.de + + +VERSION = 0.2 + +DOCS=COPYRIGHT COPYING ChangeLog + +# paths +PREFIX = /usr/local +BINDIR = ${PREFIX}/bin +MANDIR = ${PREFIX}/share/man + +CFLAGS=-O2 -Wall + +all: build +build: bday + +bday: bday.o + $(CC) $(LDFLAGS) bday.o -o $@ + +dist: build changelog + @mkdir -p bday-${VERSION} + @cp bday bday.c bday.1 Makefile ${DOCS} bday-${VERSION} + @tar -czhf bday-${VERSION}.tar.gz bday-${VERSION} + @rm -rf bday-${VERSION} + +changelog: + @echo generating changelog from mercurial log + @hg log -v --style changelog > ChangeLog + +install: + @echo installing executable file to ${BINDIR} + @mkdir -p ${BINDIR} + @cp bday ${BINDIR} + @chmod 755 ${BINDIR}/bday + @echo installing manual page to ${MANDIR}/man1 + @mkdir -p ${MANDIR}/man1 + @sed 's/VERSION/${VERSION}/g' ${MANDIR}/man1/bday.1 + @chmod 644 ${MANDIR}/man1/bday.1 + +uninstall: + @echo removing executable file from ${BINDIR} + @rm -f ${BINDIR}/bday + @echo removing manual page from ${MANDIR}/man1 + @rm -f ${MANDIR}/man1/bday.1 + + +clean: + rm -f *.o +realclean: clean + rm -f bday +distclean: realclean + @rm -f bday-*.tar.gz ChangeLog