File: Makefile

package info (click to toggle)
autolog 0.35-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 148 kB
  • ctags: 60
  • sloc: ansic: 432; makefile: 57; sh: 23
file content (21 lines) | stat: -rw-r--r-- 631 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
# *********************************************************
# 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	= -O2 -g -Wall
MANDIR  = $(DESTDIR)/usr/share/man
BINDIR  = $(DESTDIR)/usr/sbin
# *********************************************************

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

install:	autolog
	install -d $(BINDIR) $(MANDIR)/man5 $(MANDIR)/man8
	install -s autolog $(BINDIR)
	install -p -m644 autolog.conf.5 $(MANDIR)/man5
	install -p -m644 autolog.8 $(MANDIR)/man8

clean:
	rm -f autolog