forked from johnlane/abcde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (35 loc) · 1.46 KB
/
Makefile
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
abcde_version = abcde-2.9.4-DEV-bren
INSTALL = /usr/bin/install -c
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
sysconfdir = /etc
datarootdir = $(prefix)/share
docdir = $(datarootdir)/doc/$(abcde_version)
mandir = $(datarootdir)/man
DESTDIR =
all:
clean:
install:
$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
$(INSTALL) -m 755 abcde cddb-tool abcde-musicbrainz-tool $(DESTDIR)$(bindir)
$(INSTALL) -d -m 755 $(DESTDIR)$(sysconfdir)
$(INSTALL) -m 644 abcde.conf $(DESTDIR)$(sysconfdir)
$(INSTALL) -d -m 755 $(DESTDIR)$(docdir)
$(INSTALL) -m 644 changelog COPYING FAQ README $(DESTDIR)$(docdir)
$(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1
$(INSTALL) -m 644 abcde.1 cddb-tool.1 $(DESTDIR)$(mandir)/man1
windows:
cp abcde abcde.bat; cp cddb-tool cddb-tool.bat; cp abcde-musicbrainz-tool abcde-musicbrainz-tool.bat; cp examples/abcded abcded.bat; cp examples/cue2discid cue2discid.bat; cp examples/musicbrainz-get-tracks musicbrainz-get-tracks.bat; cp examples/autorip.sh autorip.bat; cp -r *.sh dist; cp -r *.bat dist; cp -r *.conf dist; cp -r *.1 dist; cp -r */*.py dist; cp -r */*.init dist;
uninstall:
-rm -v \
$(DESTDIR)$(bindir)/abcde \
$(DESTDIR)$(bindir)/cddb-tool \
$(DESTDIR)$(bindir)/abcde-musicbrainz-tool \
$(DESTDIR)$(sysconfdir)/abcde.conf \
$(DESTDIR)$(docdir)/changelog \
$(DESTDIR)$(docdir)/COPYING \
$(DESTDIR)$(docdir)/FAQ \
$(DESTDIR)$(docdir)/README \
$(DESTDIR)$(mandir)/man1/abcde.1 \
$(DESTDIR)$(mandir)/man1/cddb-tool.1