Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - bmf - bmf (Bayesian Mail Filter) 0.9.4 fork + patches
git clone git://git.codemadness.org/bmf
Log
Files
Refs
README
LICENSE
---
Makefile (1734B)
---
1 PREFIX = /usr/local
2 MANPREFIX = ${PREFIX}/man
3 NAME = bmf
4 VERSION = 0.9.4
5 BIN = bmf
6 MAN1 = bmf.1
7
8 SRC = \
9 bmf.c \
10 dbg.c \
11 dbh.c \
12 filt.c \
13 lex.c \
14 str.c \
15 vec.c
16
17 SCRIPTS =
18
19 HDR = \
20 config.h \
21 dbg.h \
22 dbh.h \
23 filt.h \
24 lex.h \
25 str.h \
26 vec.h
27
28 DOC = \
29 AUTHORS \
30 ChangeLog \
31 LICENSE \
32 README \
33 TODO
34
35 all: ${BIN}
36
37 OBJ = ${SRC:.c=.o}
38
39 bmf: ${OBJ}
40 $(CC) -o $@ ${OBJ} $(LDFLAGS) $(SYSLIBS)
41
42 bmf.o: bmf.c
43 $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c $<
44
45 dist:
46 rm -rf "${NAME}-${VERSION}"
47 mkdir -p "${NAME}-${VERSION}"
48 cp -f ${MAN1} ${DOC} ${HDR} \
49 ${SRC} ${SCRIPTS} \
50 Makefile \
51 "${NAME}-${VERSION}"
52 # make tarball
53 tar -cf - "${NAME}-${VERSION}" | \
54 gzip -c > "${NAME}-${VERSION}.tar.gz"
55 rm -rf "${NAME}-${VERSION}"
56
57 clean:
58 rm -f ${BIN} ${OBJ}
59
60 install: all
61 # installing executable files and scripts.
62 mkdir -p "${DESTDIR}${PREFIX}/bin"
63 cp -f ${BIN} ${SCRIPTS} "${DESTDIR}${PREFIX}/bin"
64 for f in ${BIN} ${SCRIPTS}; do chmod 755 "${DESTDIR}${PREFIX}/bi…
65 # installing example files.
66 mkdir -p "${DESTDIR}${PREFIX}/share/${NAME}"
67 cp -f \
68 README\
69 "${DESTDIR}${PREFIX}/share/${NAME}"
70 # installing manual pages for tools.
71 mkdir -p "${DESTDIR}${MANPREFIX}/man1"
72 cp -f ${MAN1} "${DESTDIR}${MANPREFIX}/man1"
73 for m in ${MAN1}; do chmod 644 "${DESTDIR}${MANPREFIX}/man1/$$m"…
74
75 uninstall:
76 # removing executable files and scripts.
77 for f in ${BIN} ${SCRIPTS}; do rm -f "${DESTDIR}${PREFIX}/bin/$$…
78 # removing example files.
79 rm -f \
80 "${DESTDIR}${PREFIX}/share/${NAME}/README"
81 -rmdir "${DESTDIR}${PREFIX}/share/${NAME}"
82 # removing manual pages.
83 for m in ${MAN1}; do rm -f "${DESTDIR}${MANPREFIX}/man1/$$m"; do…
84
85 .PHONY: all clean dist install uninstall
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.