File: Makefile

package info (click to toggle)
ferm 1.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 308 kB
  • ctags: 173
  • sloc: perl: 1,111; makefile: 66
file content (42 lines) | stat: -rw-r--r-- 1,038 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Makefile for ferm
#

PREFIX		= /usr
INSTDIR		= $(PREFIX)/sbin
MANDIR		= $(PREFIX)/share/man/man1
DOCDIR		= $(PREFIX)/share/doc/ferm
SHELL		= /bin/sh

all:

.phony:

install: .phony
	@echo "Creating directories..."
	@mkdir -p $(DOCDIR)/examples
	@mkdir -p $(MANDIR)
	@mkdir -p $(INSTDIR)
	@echo "Installing documentation in $(DOCDIR)..."
	@install -m 644 -o 0 -g 0 CHANGES $(DOCDIR)
	@install -m 644 -o 0 -g 0 COPYING $(DOCDIR)
	@install -m 644 -o 0 -g 0 AUTHORS $(DOCDIR)
	@install -m 644 -o 0 -g 0 README $(DOCDIR)
	@install -m 644 -o 0 -g 0 ferm.txt $(DOCDIR)
	@install -m 644 -o 0 -g 0 ferm.html $(DOCDIR)
	@install -m 644 -o 0 -g 0 examples/* $(DOCDIR)/examples
	@echo "Installing unix man page in $(MANDIR)..."
	@install -m 644 -o 0 -g 0 ferm.1 $(MANDIR)
	@gzip -9 $(MANDIR)/ferm.1
	@echo "Installing ferm in $(INSTDIR)..."
	@install -m 755 -o 0 -g 0 ferm $(INSTDIR)/ferm
	@echo "Done."

uninstall:
	@echo "Uninstalling..."
	@rm -rf $(DOCDIR)
	@rm -f $(MANDIR)/ferm.1 $(MANDIR)/ferm.1.gz
	@rm -f $(INSTDIR)/ferm
	@echo "Done."