-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rules.mk.in
89 lines (74 loc) · 2.03 KB
/
Rules.mk.in
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
## Rules.mk -- Common variables and rules for all Makefiles -*- Makefile -*-
SHELL = /bin/sh
PACKAGE = ccze
PATCHLEVEL = 0
VERSION = 0.3.${PATCHLEVEL}
DIST = stable
PROGRAM = ${PACKAGE}
VPATH = ${srcdir}
## -- User modifiable variables -- ##
prefix = @prefix@
exec_prefix = @exec_prefix@
sysconfdir = @sysconfdir@
bindir = @bindir@
mandir = @mandir@
man1dir = ${mandir}/man1
man7dir = ${mandir}/man7
libdir = @libdir@
includedir = @includedir@
pkglibdir = ${libdir}/${PACKAGE}
CC = @CC@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
TAR = tar
GZIP = gzip
TAR_OPTIONS =
GZIP_ENV = --best
ETAGS = etags
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DIR = @INSTALL@ -d
EXTRAVERSION =
## -- Private variables -- ##
ifeq (${subdir},)
top_builddir = .
else
top_builddir = ..
endif
builddir = @builddir@
DISTFILES = ${SOURCES} ${HEADERS} Makefile.in ${TESTS} ${EXTRA_DIST}
## -- Generic rules -- ##
all:
TAGS:: ${SOURCES} ${HEADERS}
test -z "${SOURCES}${HEADERS}" || ${ETAGS} ${SOURCES} ${HEADERS}
mostlyclean clean::
rm -f *~ *.o *.so *.da ${PROGRAM} TAGS
test -z "${CLEANFILES}" || rm -rf ${CLEANFILES}
distclean:: clean
rm -f Makefile
test -z "${DISTCLEANFILES}" || rm -rf ${DISTCLEANFILES}
maintainer-clean:: distclean
test -z "${MAINTCLEANFILES}" || rm -rf ${MAINTCLEANFILES}
distdir = ${top_builddir}/${PACKAGE}-${VERSION}/${subdir}
distdir: ${DISTFILES}
${INSTALL_DIR} ${distdir}
@list='${DISTFILES}'; for f in $$list; do \
if test -e ${srcdir}/$$f; then \
fn=${srcdir}/$$f; \
else \
fn=$$f; \
fi ; \
echo cp -p $$fn ${distdir}/$$f ;\
cp -p $$fn ${distdir}/$$f ;\
done
${top_builddir}/Rules.mk: ${top_srcdir}/Rules.mk.in ${top_builddir}/config.status
cd ${top_builddir} && ./config.status
${builddir}/Makefile: ${srcdir}/Makefile.in ${top_builddir}/config.status
cd ${top_builddir} && ./config.status
## -- ${MAKE} control -- ##
.PHONY: all install clean distclean mostlyclean uninstall maintainer-clean \
distdir dist distcheck
.SUFFIXES:
.SUFFIXES: .c .o .so
.DEFAULT: all