aboutsummaryrefslogtreecommitdiff
path: root/rcynic-ng/Makefile.in
blob: 9e79103bb214e736fd02c21a996409bc54eeb170 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# $Id$

NAME = rcynic

BIN = ${NAME}
SRC = ${NAME}.c
OBJ = ${NAME}.o

HDR = defasn1.h
GEN = defstack.h

CFLAGS = @CFLAGS@ -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror-implicit-function-declaration
LDFLAGS = @LDFLAGS@ @LD_STATIC_FLAG@
LIBS = @LIBS@

AWK = @AWK@

abs_top_srcdir	 = @abs_top_srcdir@
abs_top_builddir = @abs_top_builddir@

host_os = @host_os@

all: ${BIN}

clean:
	cd static-rsync; ${MAKE} $@
	rm -f ${BIN} ${OBJ} ${GEN}

${BIN}: ${SRC} ${HDR} ${GEN}
	${CC} ${CFLAGS} -o $@ ${SRC} ${LDFLAGS} ${LIBS}

defstack.h: defstack.awk ${SRC} ${HDR}
	${AWK} -f >$@ defstack.awk ${SRC} ${HDR}

test: ${BIN}
	if test -r rcynic.conf; then ./${BIN} -j 0 && echo && ./show.sh; else echo No rcynic.conf, skipping test; fi

install: ${BIN} installation-scripts/install.sh
	cd installation-scripts; host_os="${host_os}"; DESTDIR="${DESTDIR}"; . ./install.sh

uninstall deinstall:
	cd installation-scripts; host_os="${host_os}"; DESTDIR="${DESTDIR}"; . ./deinstall.sh

distclean: clean docclean
	cd static-rsync; ${MAKE} $@
	rm -f show.sh installation-scripts/linux/install.sh Makefile

tags: TAGS

TAGS: ${SRC} ${HDR} ${GEN}
	etags ${SRC} ${HDR} ${GEN}

# Doc stuff right now is just internals doc, of interest only to
# programmers.  Real doc for rcynic is still the README.  This may
# change some day.

html:
	TZ='' doxygen

pdf: html
	cd doc/latex && TZ='' ${MAKE} pdf && ln -f refman.pdf ../manual.pdf

tgz: html
	cd doc && tar -cf - html | gzip -9 >manual.tar.gz

docs: html pdf tgz

docclean:
	rm -rf doc