bday

view Makefile @ 1:8534f0e3a0db

added manpage; adjusted makefile
author meillo@marmaro.de
date Sun, 16 Dec 2007 22:52:15 +0100
parents 22b6e71de68e
children dc2f94280b01
line source
1 ######################################################################
2 # birthday. Reminder of birthdays and other events in the near future.
3 # $Id: Makefile.in,v 1.3 2000/01/02 19:17:33 andy Exp $
6 CFLAGS=-O2 -Wall -Wstrict-prototypes
9 SRC=birthday.c bdengine.c
10 OBJ=$(SRC:.c=.o)
11 EXE=bday
13 all: ${EXE}
15 ${EXE}: $(OBJ)
16 $(CC) $(LDFLAGS) $(OBJ) -o $@
19 install: all
20 @echo "installing program in $(DESTDIR)/usr/bin"
21 mkdir -p $(DESTDIR)/usr/bin
22 cp ${EXE} $(DESTDIR)/usr/bin/${EXE}
23 chmod 0755 $(DESTDIR)/usr/bin/${EXE}
24 @echo "installing manpage in $(DESTDIR)/usr/share/man/man1"
25 mkdir -p $(DESTDIR)/usr/share/man/man1
26 cp ${EXE}.1 $(DESTDIR)/usr/share/man/man1/${EXE}.1
27 chmod 0644 $(DESTDIR)/usr/share/man/man1/${EXE}.1
30 clean:
31 rm -f *.o
33 realclean: clean
34 rm -f ${EXE}