Blame


1 ab1569ee 2023-05-06 op include config.mk
2 ab1569ee 2023-05-06 op include ../config.mk
3 ab1569ee 2023-05-06 op
4 50794f47 2023-04-04 op PROG = msearchd
5 50794f47 2023-04-04 op SRCS = msearchd.c fcgi.c server.c
6 542b9008 2023-04-04 op MAN = msearchd.8
7 50794f47 2023-04-04 op
8 ab1569ee 2023-05-06 op OBJS = ${SRCS:.c=.o} ${COMPATS:.c=.o}
9 50794f47 2023-04-04 op
10 ab1569ee 2023-05-06 op # -- public targets --
11 50794f47 2023-04-04 op
12 ab1569ee 2023-05-06 op all: ${PROG}
13 ffb578a0 2023-04-04 op
14 ab1569ee 2023-05-06 op .PHONY: all tags clean distclean install uninstall dist
15 50794f47 2023-04-04 op
16 ab1569ee 2023-05-06 op tags:
17 ab1569ee 2023-05-06 op ctags ${SRCS}
18 50794f47 2023-04-04 op
19 ab1569ee 2023-05-06 op clean:
20 ab1569ee 2023-05-06 op rm -f *.[do] compat/*.[do] test/*.[do]
21 50794f47 2023-04-04 op
22 ab1569ee 2023-05-06 op distclean: clean
23 ab1569ee 2023-05-06 op rm -f config.h config.mk
24 542b9008 2023-04-04 op
25 ab1569ee 2023-05-06 op install:
26 ab1569ee 2023-05-06 op mkdir -p ${DESTDIR}${MANDIR}/man8
27 ab1569ee 2023-05-06 op ${INSTALL_MAN} msearchd.8 ${DESTDIR}${MANDIR}/man8
28 ab1569ee 2023-05-06 op mkdir -p ${DESTDIR}${SBINDIR}
29 ab1569ee 2023-05-06 op ${INSTALL_PROGRAM} ${PROG} ${DESTDIR}${SBINDIR}
30 38232a0a 2023-05-07 op mkdir -p ${DESTDIR}${SYSCONFDIR}/smarc
31 38232a0a 2023-05-07 op ${INSTALL_DATA} schema.sql ${DESTDIR}${SYSCONFDIR}/smarc
32 542b9008 2023-04-04 op
33 ab1569ee 2023-05-06 op uninstall:
34 ab1569ee 2023-05-06 op rm -f ${DESTDIR}${MANDIR}/man8/msearchd.8
35 ab1569ee 2023-05-06 op rm -f ${DESTDIR}${SBINDIR}/${PROG}
36 38232a0a 2023-05-07 op rm -f ${DESTDIR}${SYSCONFDIR}/smarc/schema.sql
37 ab1569ee 2023-05-06 op
38 ab1569ee 2023-05-06 op # -- internal build targets --
39 ab1569ee 2023-05-06 op
40 ab1569ee 2023-05-06 op ${PROG}: ${OBJS}
41 ab1569ee 2023-05-06 op ${CC} -o $@ ${CFLAGS} ${OBJS} ${LDFLAGS}
42 ab1569ee 2023-05-06 op
43 87865d5b 2023-05-06 op DEFS = -DSYSCONFDIR="\"${REALSYSCONFDIR}\"" \
44 87865d5b 2023-05-06 op -DMSEARCHD_USER="\"${WWWUSER}\""
45 87865d5b 2023-05-06 op
46 c07fdf40 2023-05-06 op .c.o:
47 87865d5b 2023-05-06 op ${CC} -c $< -o $@ ${DEFS} ${CFLAGS}
48 c07fdf40 2023-05-06 op
49 ab1569ee 2023-05-06 op # -- maintainer targets --
50 ab1569ee 2023-05-06 op
51 ab1569ee 2023-05-06 op DISTFILES = Makefile configure ${SRCS} msearchd.h msearchd.8 schema.sql
52 ab1569ee 2023-05-06 op
53 ab1569ee 2023-05-06 op dist:
54 ab1569ee 2023-05-06 op mkdir -p ${DESTDIR}/
55 ab1569ee 2023-05-06 op ${INSTALL} -m 0644 ${DISTFILES} ${DESTDIR}/
56 ab1569ee 2023-05-06 op chmod 0755 ${DESTDIR}/configure
57 ab1569ee 2023-05-06 op ${MAKE} -C compat DESTDIR=${DESTDIR}/compat dist
58 ab1569ee 2023-05-06 op ${MAKE} -C tests DESTDIR=${DESTDIR}/tests dist
59 ab1569ee 2023-05-06 op
60 ab1569ee 2023-05-06 op # -- dependencies --
61 ab1569ee 2023-05-06 op
62 ab1569ee 2023-05-06 op -include fcgi.d
63 ab1569ee 2023-05-06 op -include msearchd.d
64 ab1569ee 2023-05-06 op -include server.d