File: Makefile

package info (click to toggle)
autolog 0.42.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 252 kB
  • sloc: ansic: 954; sh: 109; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (2)
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
# *********************************************************
# Change this section as needed
# The -g flag is to include debugging information.  It gets
# stripped back out in the install command anyway.
CC      ?= gcc
CFLAGS  += -Werror=implicit-function-declaration
CFLAGS  += -D_REGEX_RE_COMP=1
#CFLAGS += -g
MANDIR  = $(DESTDIR)/usr/share/man
BINDIR  = $(DESTDIR)/usr/sbin/
STATEDIR = $(DESTDIR)/var/lib/autolog/
CONFDIR = $(DESTDIR)/etc/
INIDIR  = $(DESTDIR)/etc/init.d/
# *********************************************************

autolog:	autolog.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o autolog autolog.c

install:	autolog
	install -d $(BINDIR) $(INIDIR) $(CONFDIR) $(STATEDIR) $(LOGDIR) $(MANDIR)
	install -m744 -o 0 -g 0 autolog           $(BINDIR)
#	install -m744 -o 0 -g 0 autolog.init      $(INIDIR)/autolog
	install -m644 -o 0 -g 0 autolog.conf      $(CONFDIR)

clean:
	rm -f autolog