meillo@3: # bday by meillo@marmaro.de meillo@0: meillo@0: meillo@16: VERSION = 0.2 meillo@3: meillo@16: DOCS=COPYRIGHT COPYING ChangeLog meillo@3: meillo@3: # paths meillo@16: PREFIX = /usr/local meillo@3: BINDIR = ${PREFIX}/bin meillo@3: MANDIR = ${PREFIX}/share/man meillo@3: meillo@5: CFLAGS=-O2 -Wall meillo@0: meillo@5: all: build meillo@16: build: bday meillo@0: meillo@16: bday: bday.o meillo@16: $(CC) $(LDFLAGS) bday.o -o $@ meillo@5: meillo@3: dist: build changelog meillo@16: @mkdir -p bday-${VERSION} meillo@16: @cp bday bday.c bday.1 Makefile ${DOCS} bday-${VERSION} meillo@16: @tar -czhf bday-${VERSION}.tar.gz bday-${VERSION} meillo@16: @rm -rf bday-${VERSION} meillo@3: meillo@3: changelog: meillo@3: @echo generating changelog from mercurial log meillo@3: @hg log -v --style changelog > ChangeLog meillo@3: meillo@3: install: meillo@16: @echo installing executable file to ${BINDIR} meillo@16: @mkdir -p ${BINDIR} meillo@16: @cp bday ${BINDIR} meillo@16: @chmod 755 ${BINDIR}/bday meillo@16: @echo installing manual page to ${MANDIR}/man1 meillo@16: @mkdir -p ${MANDIR}/man1 meillo@16: @sed 's/VERSION/${VERSION}/g' ${MANDIR}/man1/bday.1 meillo@16: @chmod 644 ${MANDIR}/man1/bday.1 meillo@3: meillo@3: uninstall: meillo@16: @echo removing executable file from ${BINDIR} meillo@16: @rm -f ${BINDIR}/bday meillo@16: @echo removing manual page from ${MANDIR}/man1 meillo@16: @rm -f ${MANDIR}/man1/bday.1 meillo@0: meillo@0: meillo@0: clean: meillo@0: rm -f *.o meillo@0: realclean: clean meillo@16: rm -f bday meillo@3: distclean: realclean meillo@16: @rm -f bday-*.tar.gz ChangeLog