1 --- Makefile.orig 2011-11-17 13:15:45.000000000 +0100
2 +++ Makefile 2011-11-17 13:18:58.000000000 +0100
5 -export prefix=/usr/local
6 +export prefix ?= /usr/local
7 export milena_dir=$(prefix)/share/milena
8 -export doc_dir=$(prefix)/share/doc/milena
9 +export doc_dir=$(DESTDIR)$(prefix)/share/doc/milena
10 export speechd_dir=$(shell ./find_speechd)
11 export distro=$(shell uname -o)
12 export mbrola=$(shell if [ -f ./config.dat ] ; then cat ./config.dat | awk -F= '/mbrola=/ {print $$2}'; fi)
28 make -C milena_ws clean
35 install -m 644 README* $(doc_dir)
36 - make -C data install
38 make -C milena_ws install
39 make -C subplayer install
41 for i in README*;do rm -f $(doc_dir)/"$$i";done
42 if [ -d $(doc_dir) ] ; then rmdir --ignore-fail-on-non-empty $(doc_dir);fi
45 - make -C data uninstall
46 make -C utils uninstall
47 make -C milena_ws uninstall
48 make -C subplayer uninstall
49 --- src/Makefile.orig 2011-11-17 13:29:29.000000000 +0100
50 +++ src/Makefile 2011-11-17 13:32:29.000000000 +0100
52 rm -f *~ *.o *.so milena milena.h milena.pc milena_cyrillic.h
55 + install -dm 0755 $(DESTDIR)$(prefix)/bin
56 + install -dm 0755 $(DESTDIR)$(LIBDIR)/pkgconfig
57 + install -dm 0755 $(DESTDIR)$(prefix)/include
58 install -m 0755 milena $(DESTDIR)$(prefix)/bin
59 install -m 0755 libmilena.so libmilena_mbrola.so $(DESTDIR)$(LIBDIR)
60 install -m 0644 milena.h milena_mbrola.h $(DESTDIR)$(prefix)/include/
61 - if [ -d $(LIBDIR)/pkgconfig ] ; then install -m 0644 milena.pc $(DESTDIR)$(LIBDIR)/pkgconfig; fi
62 + if [ -d $(LIBDIR)/pkgconfig ] ; then install -m 0644 milena.pc $(DESTDIR)$(LIBDIR)/pkgconfig/milena.pc; fi
65 rm -f $(DESTDIR)$(prefix)/bin/milena