bday

diff Makefile @ 0:22b6e71de68e

initial commit; codebase from birthday; just the needed stuff; substituted getopt by own code
author meillo@marmaro.de
date Sun, 16 Dec 2007 22:26:48 +0100
parents
children 8534f0e3a0db
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Sun Dec 16 22:26:48 2007 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +######################################################################
     1.5 +# birthday. Reminder of birthdays and other events in the near future.
     1.6 +# $Id: Makefile.in,v 1.3 2000/01/02 19:17:33 andy Exp $
     1.7 +
     1.8 +
     1.9 +CFLAGS=-O2 -Wall -Wstrict-prototypes
    1.10 +
    1.11 +
    1.12 +SRC=birthday.c bdengine.c
    1.13 +OBJ=$(SRC:.c=.o)
    1.14 +EXE=bday
    1.15 +
    1.16 +all: ${EXE}
    1.17 +
    1.18 +${EXE}: $(OBJ)
    1.19 +	$(CC) $(LDFLAGS) $(OBJ) -o $@
    1.20 +
    1.21 +
    1.22 +install: birthday birthday.man
    1.23 +	mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/man/man1
    1.24 +	cp ${EXE} $(DESTDIR)/usr/bin/${EXE}
    1.25 +	chmod 0755 $(DESTDIR)/usr/bin/${EXE}
    1.26 +	cp ${EXE}.man $(DESTDIR)/usr/share/man/man1/${EXE}.1
    1.27 +	chmod 0644 $(DESTDIR)/usr/share/man/man1/${EXE}.1
    1.28 +
    1.29 +
    1.30 +clean:
    1.31 +	rm -f *.o
    1.32 +
    1.33 +realclean: clean
    1.34 +	rm -f ${EXE}