File: Makefile

package info (click to toggle)
comprez 2.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 152 kB
  • ctags: 57
  • sloc: sh: 484; makefile: 43
file content (49 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download | duplicates (2)
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
43
44
45
46
47
48
49
PROG = z

BINDIR   = /usr/local/bin
#BINDIR  = $(HOME)/bin
MKBINDIR = true
BINMODE  = 755

MANDIR   = /usr/local/man/man1
#MANDIR  = $(HOME)/man/man1
MKMANDIR = true
MANEXT   = .1
MANMODE  = 644

all:

install:
	-$(MKBINDIR) && mkdir $(BINDIR) 2> /dev/null
	cp $(PROG) $(BINDIR)/.
	chmod $(BINMODE) $(BINDIR)/$(PROG)

install.man:
	-$(MKMANDIR) && mkdir $(MANDIR) 2> /dev/null
	cp $(PROG).man $(MANDIR)/$(PROG)$(MANEXT)
	chmod $(MANMODE) $(MANDIR)/$(PROG)$(MANEXT)

deinstall:
	rm -f $(BINDIR)/$(PROG)
	-$(MKBINDIR) && rmdir $(BINDIR) 2> /dev/null

deinstall.man:
	rm -f $(MANDIR)/$(PROG)$(MANEXT)
	-$(MKMANDIR) && rmdir $(MANDIR) 2> /dev/null

clean:

# -----------------------------------------------------------------------
# for maintainer use only

import:
	cp $(HOME)/binp/$(PROG) .
	cp $(HOME)/manp/man1/$(PROG).1 $(PROG).man
	cp $(HOME)/manp/man1/$(PROG).html .

dist:
	VER=`sed -n 's/^version=\([^ 	]*\).*/\1/p' $(PROG) | tail -1`;\
	BASE=$(PROG)-$$VER;\
	rm -f ../$$BASE.tgz;\
	cp -r ../src ../$$BASE;\
	z -gz -s .tgz -m 644 ../$$BASE