--- 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: