File: Makefile

package info (click to toggle)
mp3roaster 0.3.0-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 148 kB
  • ctags: 26
  • sloc: perl: 584; makefile: 109
file content (108 lines) | stat: -rw-r--r-- 2,864 bytes parent folder | download | duplicates (6)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#
# MP3Roaster Makefile
#
# $Id: Makefile,v 1.16 2005/12/28 21:45:40 eim Exp $
#
# This Makefile allows to install MP3Roaster system wide, this way MP3roaster
# can be used by all user of our system with personal configuration files in
# their respective home directories.
#

CFG_CVS_REVISION = \$$Revision: 1.16 $
BINPATH  = /usr/local/bin
MANPATH  = /usr/local/share/man
DOCPATH  = /usr/local/share/doc
ETCPATH  = /etc

all:
	@echo "MP3Roaster Makefile, $(CFG_CVS_REVISION)"
	@echo
	@echo "    . Type \"% make install\", to install MP3Roaster."
	@echo "    . Type \"% make uninstall\", to uninstall MP3Roaster."
	@echo
	@echo "This Makefile will install MP3Roaster system wide."
	@echo "Read the MP3roaster man page or perldoc \`which mp3roaster\` once installed."
	@echo

install:
	@echo
	@echo "INSTALLING MP3Roaster"
	@echo "====================="
	@echo
	@echo "This procedure will install MP3Roaster."
	@echo

# EXECUTABLES
	@echo -n -e "\t* Installing binaries .............. "
	@install -D mp3roaster $(BINPATH)/mp3roaster
	@echo "done."

# MAN PAGES
	@echo -n -e "\t* Installing manual ................ "
	@install -D -m 0644 mp3roaster.1.gz $(MANPATH)/man1/mp3roaster.1.gz
	@echo "done."

# DOCUMENTS
	@echo -n -e "\t* Installing documentation ......... "
	@install -d $(DOCPATH)/mp3roaster
	@install -m 0644 COPYING $(DOCPATH)/mp3roaster
	@install -m 0644 ChangeLog $(DOCPATH)/mp3roaster
	@install -m 0644 README $(DOCPATH)/mp3roaster
	@echo "done."

# /ETC CONFIGURATIONS
	@echo -n -e "\t* Installing configuration ......... "
	@install -d $(ETCPATH)/mp3roaster
	@install -m 0644 mp3roasterrc $(ETCPATH)/mp3roaster
	@echo "done."

	@echo
	@echo "Installed successfully."
	@echo

uninstall: 
	@echo
	@echo "UNINSTALLING MP3Roaster"
	@echo "======================="

	@echo
	@echo "This procedure will completely remove MP3Roaster from your system."
	@echo "Only MP3Roaster user configurations in the home directories will remain."
	@echo

# EXECUTABLES
	@echo -n -e "\t* Removing binaries .............. "
	@rm $(BINPATH)/mp3roaster
	@echo "done."

# MAN PAGES
	@echo -n -e "\t* Removing manual ................ "
	@rm $(MANPATH)/man1/mp3roaster.1.gz
	@echo "done."

# DOCUMENTS
	@echo -n -e "\t* Removing documentation ......... "
	@rm -r $(DOCPATH)/mp3roaster
	@echo "done."

# /ETC CONFIGURATIONS
	@echo -n -e "\t* Removing configuration ......... "
	@rm -r $(ETCPATH)/mp3roaster
	@echo "done."

	@echo
	@echo "Uninstalled successfully."
	@echo

changelog:
	echo -e "#\n# \$$Id: Makefile,v 1.16 2005/12/28 21:45:40 eim Exp $$\n#\n" | cvs2cl -T -t -w -r --fsf -U Developers --header - && rm ChangeLog.bak
	cvs commit -m "The ChangeLog has been updated." ChangeLog

cvs_update:
	cvs update -P

man:
	rm -f mp3roaster.1 mp3roaster.1.gz
	pod2man mp3roaster mp3roaster.1
	gzip mp3roaster.1
	cvs commit -m "The MAN page has been updated." mp3roaster.1.gz