bday

view Makefile @ 19:eb4620a01023

updated the copyright note
author markus schnalke <meillo@marmaro.de>
date Mon, 24 Feb 2014 21:32:38 +0100
parents dc220ec8248d
children
line source
1 # bday by meillo@marmaro.de
4 VERSION = 0.2
6 DOCS=COPYRIGHT COPYING ChangeLog
8 # paths
9 PREFIX = /usr/local
10 BINDIR = ${PREFIX}/bin
11 MANDIR = ${PREFIX}/share/man
13 CFLAGS=-O2 -Wall
15 all: build
16 build: bday
18 bday: bday.o
19 $(CC) $(LDFLAGS) bday.o -o $@
21 dist: build changelog
22 @mkdir -p bday-${VERSION}
23 @cp bday bday.c bday.1 Makefile ${DOCS} bday-${VERSION}
24 @tar -czhf bday-${VERSION}.tar.gz bday-${VERSION}
25 @rm -rf bday-${VERSION}
27 changelog:
28 @echo generating changelog from mercurial log
29 @hg log -v --style changelog > ChangeLog
31 install:
32 @echo installing executable file to ${BINDIR}
33 @mkdir -p ${BINDIR}
34 @cp bday ${BINDIR}
35 @chmod 755 ${BINDIR}/bday
36 @echo installing manual page to ${MANDIR}/man1
37 @mkdir -p ${MANDIR}/man1
38 @sed 's/VERSION/${VERSION}/g' <bday.1 >${MANDIR}/man1/bday.1
39 @chmod 644 ${MANDIR}/man1/bday.1
41 uninstall:
42 @echo removing executable file from ${BINDIR}
43 @rm -f ${BINDIR}/bday
44 @echo removing manual page from ${MANDIR}/man1
45 @rm -f ${MANDIR}/man1/bday.1
48 clean:
49 rm -f *.o
50 realclean: clean
51 rm -f bday
52 distclean: realclean
53 @rm -f bday-*.tar.gz ChangeLog