Debian Codegraph @

Makefile

raw
1 #
2 # MP3Roaster Makefile
3 #
4 # $Id: Makefile,v 1.16 2005/12/28 21:45:40 eim Exp $
5 #
6 # This Makefile allows to install MP3Roaster system wide, this way MP3roaster
7 # can be used by all user of our system with personal configuration files in
8 # their respective home directories.
9 #
10
11 CFG_CVS_REVISION = \$$Revision: 1.16 $
12 BINPATH = /usr/local/bin
13 MANPATH = /usr/local/share/man
14 DOCPATH = /usr/local/share/doc
15 ETCPATH = /etc
16
17 all:
18 @echo "MP3Roaster Makefile, $(CFG_CVS_REVISION)"
19 @echo
20 @echo " . Type \"% make install\", to install MP3Roaster."
21 @echo " . Type \"% make uninstall\", to uninstall MP3Roaster."
22 @echo
23 @echo "This Makefile will install MP3Roaster system wide."
24 @echo "Read the MP3roaster man page or perldoc \`which mp3roaster\` once installed."
25 @echo
26
27 install:
28 @echo
29 @echo "INSTALLING MP3Roaster"
30 @echo "====================="
31 @echo
32 @echo "This procedure will install MP3Roaster."
33 @echo
34
35 # EXECUTABLES
36 @echo -n -e "\t* Installing binaries .............. "
37 @install -D mp3roaster $(BINPATH)/mp3roaster
38 @echo "done."
39
40 # MAN PAGES
41 @echo -n -e "\t* Installing manual ................ "
42 @install -D -m 0644 mp3roaster.1.gz $(MANPATH)/man1/mp3roaster.1.gz
43 @echo "done."
44
45 # DOCUMENTS
46 @echo -n -e "\t* Installing documentation ......... "
47 @install -d $(DOCPATH)/mp3roaster
48 @install -m 0644 COPYING $(DOCPATH)/mp3roaster
49 @install -m 0644 ChangeLog $(DOCPATH)/mp3roaster
50 @install -m 0644 README $(DOCPATH)/mp3roaster
51 @echo "done."
52
53 # /ETC CONFIGURATIONS
54 @echo -n -e "\t* Installing configuration ......... "
55 @install -d $(ETCPATH)/mp3roaster
56 @install -m 0644 mp3roasterrc $(ETCPATH)/mp3roaster
57 @echo "done."
58
59 @echo
60 @echo "Installed successfully."
61 @echo
62
63 uninstall:
64 @echo
65 @echo "UNINSTALLING MP3Roaster"
66 @echo "======================="
67
68 @echo
69 @echo "This procedure will completely remove MP3Roaster from your system."
70 @echo "Only MP3Roaster user configurations in the home directories will remain."
71 @echo
72
73 # EXECUTABLES
74 @echo -n -e "\t* Removing binaries .............. "
75 @rm $(BINPATH)/mp3roaster
76 @echo "done."
77
78 # MAN PAGES
79 @echo -n -e "\t* Removing manual ................ "
80 @rm $(MANPATH)/man1/mp3roaster.1.gz
81 @echo "done."
82
83 # DOCUMENTS
84 @echo -n -e "\t* Removing documentation ......... "
85 @rm -r $(DOCPATH)/mp3roaster
86 @echo "done."
87
88 # /ETC CONFIGURATIONS
89 @echo -n -e "\t* Removing configuration ......... "
90 @rm -r $(ETCPATH)/mp3roaster
91 @echo "done."
92
93 @echo
94 @echo "Uninstalled successfully."
95 @echo
96
97 changelog:
98 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
99 cvs commit -m "The ChangeLog has been updated." ChangeLog
100
101 cvs_update:
102 cvs update -P
103
104 man:
105 rm -f mp3roaster.1 mp3roaster.1.gz
106 pod2man mp3roaster mp3roaster.1
107 gzip mp3roaster.1
108 cvs commit -m "The MAN page has been updated." mp3roaster.1.gz