File: Makefile

package info (click to toggle)
newpid 4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 56 kB
  • ctags: 7
  • sloc: ansic: 85; makefile: 16; perl: 12; sh: 4
file content (18 lines) | stat: -rw-r--r-- 432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CFLAGS += -g -O2 -Wall -Werror
PREFIX = /usr

all: newpid newpid.1

newpid: newpid.o

newpid.1: newpid.pod
	pod2man --center "" -r "" --quotes=none --section 1 $< > $@

install: newpid newpid.1
	install -d $(DESTDIR)$(PREFIX)/bin
	install newpid $(DESTDIR)$(PREFIX)/bin/newpid
	install -d $(DESTDIR)$(PREFIX)/share/man/man1
	install newpid.1 $(DESTDIR)$(PREFIX)/share/man/man1/newpid.1

clean:
	rm -f newpid newpid.o newpid.1 z.out