blob: f482712c2a910574bd46ff507d9c8822416ce191 (
plain)
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
|
--- Makefile 2003-11-26 16:59:34.000000000 +0100
+++ Makefile.gentoo 2004-06-12 14:46:09.260318128 +0200
@@ -17,7 +17,7 @@
LFLAGS+=-shared
LFLAGS+=-fPIC
-all: lyrc.so
+all: mo lyrc.so
lyrc.so: lyrc.o window.o string_tool.o tag_read.o cd-discid.o lyrc_site.o
@echo Linking
@@ -35,27 +35,28 @@
clean:
rm -f *.o core *.so*
-install: all mo
+install:
@echo Installation
@echo ------------
@echo "Installing library in `xmms-config --visualization-plugin-dir`"
- @cp -f lyrc.so `xmms-config --visualization-plugin-dir`
+ @mkdir -p ${DESTDIR}`xmms-config --visualization-plugin-dir`
+ @cp -f lyrc.so ${DESTDIR}`xmms-config --visualization-plugin-dir`
@echo "Installing files in $(INSTALL_DIRECTORY)"
- @mkdir -p $(INSTALL_DIRECTORY) 2>/dev/null
- @cp -f script.py $(INSTALL_DIRECTORY)
- @cp -f submit.py $(INSTALL_DIRECTORY)
- @cp -f adv_script.py $(INSTALL_DIRECTORY)
- @cp -f html/lyrc.jpg $(INSTALL_DIRECTORY)
- @cp -f html/timer.gif $(INSTALL_DIRECTORY)
+ @mkdir -p ${DESTDIR}$(INSTALL_DIRECTORY) 2>/dev/null
+ @cp -f script.py ${DESTDIR}$(INSTALL_DIRECTORY)
+ @cp -f submit.py ${DESTDIR}$(INSTALL_DIRECTORY)
+ @cp -f adv_script.py ${DESTDIR}$(INSTALL_DIRECTORY)
+ @cp -f html/lyrc.jpg ${DESTDIR}$(INSTALL_DIRECTORY)
+ @cp -f html/timer.gif ${DESTDIR}$(INSTALL_DIRECTORY)
@for i in `ls po/*.mo`; do \
j=`basename $$i .mo`; \
dir=`echo "$(LOCALEDIR)/$$j/LC_MESSAGES"`; \
- mkdir -p $$dir 2>/dev/null; \
+ mkdir -p ${DESTDIR}$$dir 2>/dev/null; \
echo "Installing traduction file $$i to $$dir/lyrc.mo"; \
- cp -f $$i $$dir/lyrc.mo ; \
+ cp -f $$i ${DESTDIR}$$dir/lyrc.mo ; \
done
uninstall:
|