File: Makefile

package info (click to toggle)
sysvbanner 1.0-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 52 kB
  • ctags: 13
  • sloc: ansic: 116; makefile: 45; sh: 4
file content (16 lines) | stat: -rw-r--r-- 264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS=-Wall -O2
DESTDIR=

BIN=banner
SRC=$(BIN).c
MAN=$(BIN).1

$(BIN): $(SRC)
	$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)

install: $(BIN) $(MAN)
	install -s -m 755 $(BIN) $(DESTDIR)/usr/bin
	install    -m 644 $(MAN) $(DESTDIR)/usr/share/man/man1

clean:
	$(RM) $(BIN)