| 1 | SUBDIRS = \ |
|---|
| 2 | gui \ |
|---|
| 3 | po \ |
|---|
| 4 | packages/win32/ \ |
|---|
| 5 | libchristine \ |
|---|
| 6 | libchristine/christine_dbus/ \ |
|---|
| 7 | libchristine/pattern/ \ |
|---|
| 8 | libchristine/gui/ \ |
|---|
| 9 | libchristine/Storage/ \ |
|---|
| 10 | libchristine/Plugins/ \ |
|---|
| 11 | libchristine/Plugins/albumCover/ \ |
|---|
| 12 | libchristine/Plugins/christinePyNotify/ \ |
|---|
| 13 | libchristine/Plugins/getInfo/ \ |
|---|
| 14 | libchristine/Plugins/gnomeDBus/ \ |
|---|
| 15 | libchristine/Plugins/lastfm/ \ |
|---|
| 16 | libchristine/Plugins/pidgin/ \ |
|---|
| 17 | libchristine/Plugins/trayicon/ \ |
|---|
| 18 | libchristine/Plugins/webservices/ \ |
|---|
| 19 | libchristine/Plugins/webservices/glade/ \ |
|---|
| 20 | libchristine/c3rdparty/ |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | bin_SCRIPTS = christine |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | DIST_FILES = config.rpath \ |
|---|
| 27 | mkinstalldirs \ |
|---|
| 28 | christine.desktop.in \ |
|---|
| 29 | christine.py \ |
|---|
| 30 | christine.c |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | EXTRA_DIST = config.rpath config.rpath createDeb.sh.in \ |
|---|
| 35 | $(DIST_FILES) |
|---|
| 36 | |
|---|
| 37 | program_name = @PROGRAM_NAME@ |
|---|
| 38 | PROGRAM_NAME = @PROGRAM_NAME@ |
|---|
| 39 | desktopdir = $(datadir)/applications |
|---|
| 40 | pkgdatadir = $(datadir) |
|---|
| 41 | desktop_DATA = christine.desktop |
|---|
| 42 | |
|---|
| 43 | prefix = @prefix@ |
|---|
| 44 | sysconfdir = @sysconfdir@ |
|---|
| 45 | pythonincludedir = @PYTHON_INCLUDE_DIR@ |
|---|
| 46 | pythonlibdir = @PYTHON_LIB_DIR@/../config |
|---|
| 47 | pythonlfs = @PYTHON_LFS@ |
|---|
| 48 | usr_libdir = @includedir@ |
|---|
| 49 | pythonversion = @PYTHON_VERSION@ |
|---|
| 50 | |
|---|
| 51 | edit = sed \ |
|---|
| 52 | -e 's,@datadir\@,$(pkgdatadir),g' \ |
|---|
| 53 | -e 's,@prefix\@,$(prefix),g' \ |
|---|
| 54 | -e 's,@sysconfdir\@,$(pkgsysconfdir),g' \ |
|---|
| 55 | -e 's,@programname\@,$(PROGRAM_NAME),g' \ |
|---|
| 56 | -e 's,@VERSION\@,$(VERSION),g' |
|---|
| 57 | |
|---|
| 58 | clean-local: |
|---|
| 59 | rm -rf christine.desktop |
|---|
| 60 | rm -rf christine |
|---|
| 61 | rm -rf createDeb.sh |
|---|
| 62 | |
|---|
| 63 | all: all-am |
|---|
| 64 | chmod 755 christine |
|---|
| 65 | |
|---|
| 66 | christine.desktop: Makefile $(srcdir)/christine.desktop.in |
|---|
| 67 | $(edit) $(srcdir)/christine.desktop.in > christine.desktop |
|---|
| 68 | |
|---|
| 69 | createDeb.sh: Makefile $(srcdir)/createDeb.sh.in |
|---|
| 70 | $(edit) $(srcdir)/createDeb.sh.in > createDeb.sh |
|---|
| 71 | |
|---|
| 72 | run: |
|---|
| 73 | ./christine --devel $* |
|---|
| 74 | |
|---|
| 75 | christine: Makefile $(srcdir)/christine.c |
|---|
| 76 | $(CC) ${CFLAGS} -Wall -fPIC -I${pythonincludedir} -c christine.c -o christine.o |
|---|
| 77 | $(CC) ${CFLAGS} ${LDFLAGS} ${pythonlfs} christine.o -ldl -lpthread -lutil -lm -lpython${pythonversion} -o christine |
|---|
| 78 | python -c "import compileall,re; compileall.compile_dir('./', rx=re.compile('/[.]svn'),force=True, maxlevels=11)" |
|---|
| 79 | |
|---|
| 80 | ACLOCAL_AMFLAGS = -I m4 |
|---|