File: Makefile

package info (click to toggle)
mt-st 0.7-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 196 kB
  • ctags: 421
  • sloc: ansic: 1,836; makefile: 81; sh: 42
file content (25 lines) | stat: -rw-r--r-- 463 bytes parent folder | download
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
CFLAGS=  -Wall -O2
SBINDIR= /sbin
BINDIR=  /bin
MANDIR= /usr/man

all:	mt stinit

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

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

install: mt stinit
	install mt $(BINDIR)
	install -c -m 444 mt.1 $(MANDIR)/man1
	install stinit $(SBINDIR)
	install -c -m 444 stinit.8 $(MANDIR)/man8

dist:	clean
	(mydir=`basename \`pwd\``;\
	cd .. && tar cvvf - $$mydir | gzip -9 > $${mydir}.tar.gz)

clean:
	rm -f *~ \#*\# *.o mt stinit