Mercurial > bday
comparison Makefile @ 5:5af6bf2cb271
reads only stdin now, no files anymore; removed -f option aswell; code beatifing
author | meillo@marmaro.de |
---|---|
date | Mon, 17 Dec 2007 15:09:03 +0100 |
parents | dc2f94280b01 |
children | b6f4c7fba64a |
comparison
equal
deleted
inserted
replaced
4:5326c222cd4e | 5:5af6bf2cb271 |
---|---|
13 MANDIR = ${PREFIX}/share/man | 13 MANDIR = ${PREFIX}/share/man |
14 | 14 |
15 SRC=birthday.c bdengine.c | 15 SRC=birthday.c bdengine.c |
16 OBJ=$(SRC:.c=.o) | 16 OBJ=$(SRC:.c=.o) |
17 | 17 |
18 CFLAGS=-O2 -Wall -Wstrict-prototypes | 18 CFLAGS=-O2 -Wall |
19 | 19 |
20 all: | 20 all: build |
21 @echo usage: make [un]install | |
22 | 21 |
23 build: ${NAME} | 22 build: ${NAME} |
24 | 23 |
25 ${NAME}: $(OBJ) | 24 ${NAME}: $(OBJ) |
26 $(CC) $(LDFLAGS) $(OBJ) -o $@ | 25 $(CC) $(LDFLAGS) $(OBJ) -o $@ |
26 | |
27 car: clean all | |
27 | 28 |
28 dist: build changelog | 29 dist: build changelog |
29 @mkdir -p ${NV} | 30 @mkdir -p ${NV} |
30 @cp -f ${NAME} ${NAME}.1 Makefile ${DOCS} ${NV} | 31 @cp -f ${NAME} ${NAME}.1 Makefile ${DOCS} ${NV} |
31 @tar -czhof ${NV}.tar.gz ${NV} | 32 @tar -czhof ${NV}.tar.gz ${NV} |