File: Makefile

package info (click to toggle)
nethogs 0.8.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,640 kB
  • sloc: cpp: 2,706; ansic: 317; python: 134; makefile: 76; sh: 69
file content (20 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all:

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),FreeBSD)
  ifeq ($(PREFIX),/usr/local)
    man8 := $(PREFIX)/man/man8
  else
    man8 := $(PREFIX)/share/man/man8
  endif
else
  man8 := $(PREFIX)/share/man/man8
endif

install: nethogs.8
	install -d -m 755 $(DESTDIR)$(man8)
	install -m 644 nethogs.8 $(DESTDIR)$(man8)

uninstall:
	rm $(DESTDIR)$(man8)/nethogs.8 || true