]>
Commit | Line | Data |
---|---|---|
2f65816f JB |
1 | --- cdtool-2.1.6/Makefile.in.orig 2004-07-29 19:47:39.000000000 +0200 |
2 | +++ cdtool-2.1.6/Makefile.in 2004-08-01 13:02:21.478405032 +0200 | |
3 | @@ -42,21 +42,26 @@ | |
4 | build: $(PROGRAMS) | |
5 | ||
6 | install: install-files install-links | |
7 | -install-files: | |
8 | - $(INSTALL) cdctrl $(bindir) -o root | |
9 | - $(INSTALL) cdloop $(bindir) -o root | |
10 | - $(INSTALL) cdadd $(bindir) -o root | |
11 | - $(INSTALL) cdown $(bindir) -o root | |
12 | - | |
13 | - $(INSTALL) cdown.1 $(mandir)/man1 | |
14 | - $(INSTALL) cdtool.1 $(bindir)/man1 | |
15 | - $(INSTALL) cdctrl.1 $(bindir)/man1 | |
16 | - $(INSTALL) cdloop.1 $(bindir)/man1 | |
17 | +install-dirs: | |
18 | + $(INSTALL) -d $(DESTDIR)$(bindir) | |
19 | + $(INSTALL) -d $(DESTDIR)$(libdir) | |
20 | + $(INSTALL) -d $(DESTDIR)$(mandir)/man1 | |
21 | + | |
22 | +install-files: install-dirs | |
23 | + $(INSTALL) cdctrl $(DESTDIR)$(bindir) | |
24 | + $(INSTALL) cdloop $(DESTDIR)$(bindir) | |
25 | + $(INSTALL) cdadd $(DESTDIR)$(bindir) | |
26 | + $(INSTALL) cdown $(DESTDIR)$(bindir) | |
27 | + | |
28 | + $(INSTALL) cdown.1 $(DESTDIR)$(mandir)/man1 | |
29 | + $(INSTALL) cdtool.1 $(DESTDIR)$(mandir)/man1 | |
30 | + $(INSTALL) cdctrl.1 $(DESTDIR)$(mandir)/man1 | |
31 | + $(INSTALL) cdloop.1 $(DESTDIR)$(mandir)/man1 | |
32 | ||
33 | - $(INSTALL) -d $(libdir)/cdtool -o root -g root -m 0755 | |
34 | - $(INSTALL) cdtool $(libdir)/cdtool -o root | |
35 | + $(INSTALL) -d $(DESTDIR)$(libdir)/cdtool -m 0755 | |
36 | + $(INSTALL) cdtool $(DESTDIR)$(libdir)/cdtool | |
37 | ||
38 | -LINKTARGET = ../lib/cdtool/cdtool | |
39 | +LINKTARGET = $(libdir)/cdtool/cdtool | |
40 | LINKS = cdplay cdpause cdstop cdclose cdeject cdir cdinfo cdreset \ | |
41 | cdvolume cdshuffle | |
42 | ||
43 | @@ -64,13 +69,14 @@ | |
44 | install-links-local: bindir = . | |
45 | install-links-local: install-links | |
46 | ||
47 | -install-links: | |
48 | +install-links: install-dirs | |
49 | for command in $(LINKS); do \ | |
50 | - if test -e $(bindir)/$$command || test -h $(bindir)/$$command; then\ | |
51 | - echo $(bindir)/$$command exists; \ | |
52 | + if test -e $(DESTDIR)$(bindir)/$$command || test -h $(DESTDIR)$(bindir)/$$command; then\ | |
53 | + echo $(DESTDIR)$(bindir)/$$command exists; \ | |
54 | continue; \ | |
55 | fi; \ | |
56 | - ln -s $(LINKTARGET) $(bindir)/$$command; \ | |
57 | + ln -s $(LINKTARGET) $(DESTDIR)$(bindir)/$$command; \ | |
58 | + echo ".so cdtool.1" > $(DESTDIR)$(mandir)/man1/$${command}.1; \ | |
59 | done | |
60 | ||
61 | clean: |