filename | Makefile.am |
changeset | 1053:7a9a5eef34ac |
prev | 1024:c67f2d61ab97 |
next | 1061:06ea56ae747f |
author | nkeynes |
date | Sun Jun 28 12:08:16 2009 +0000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Fix creating first VMU (failed to add to list) Fix device-changed causing second device-changed to fire |
view | annotate | diff | log | raw |
1 ## Process this file with automake to produce Makefile.in
3 POD2MAN=@POD2MAN@
4 BUNDLE=lxdream.app
6 if BUILD_SYSTEST
7 TEST_SUBDIR = test
8 endif
9 SUBDIRS = src po $(TEST_SUBDIR)
11 EXTRA_DIST = autogen.sh lxdream.pod lxdream.desktop bundlelibs.pl
13 dist_sysconf_DATA = lxdreamrc
14 CLEANFILES = lxdream.1
15 man_MANS = lxdream.1
17 lxdream.1: lxdream.pod
18 $(POD2MAN) $< $@
20 install-data-local:
21 @$(NORMAL_INSTALL)
22 if test -d $(srcdir)/pixmaps; then \
23 $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
24 for pixmap in $(srcdir)/pixmaps/*.png $(srcdir)/pixmaps/*.gif; do \
25 if test -f $$pixmap; then \
26 $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
27 fi \
28 done \
29 fi
30 $(mkinstalldirs) $(DESTDIR)$(datadir)/applications
31 $(INSTALL_DATA) $(srcdir)/lxdream.desktop $(DESTDIR)$(datadir)/applications
32 $(INSTALL_DATA) $(srcdir)/pixmaps/lxdream.png $(DESTDIR)$(datadir)/pixmaps
33 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
35 uninstall-local:
36 @$(NORMAL_UNINSTALL)
37 rm -rf $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE)
38 rm -f $(DESTDIR)$(datadir)/pixmaps/lxdream.png
39 rm -f $(DESTDIR)$(datadir)/applications/lxdream.desktop
41 clean-local:
42 rm -rf $(BUNDLE)
44 dist-hook:
45 if test -d $(srcdir)/pixmaps; then \
46 mkdir $(distdir)/pixmaps; \
47 for pixmap in $(srcdir)/pixmaps/*; do \
48 if test -f $$pixmap; then \
49 cp -p $$pixmap $(distdir)/pixmaps; \
50 fi \
51 done \
52 fi
53 if test -d $(srcdir)/debian; then \
54 mkdir $(distdir)/debian; \
55 for f in $(srcdir)/debian/*; do \
56 if test -f $$f; then \
57 cp -p $$f $(distdir)/debian; \
58 fi \
59 done \
60 fi
62 if GUI_COCOA
63 # Build a Mac OS X bundle. This is meaningless anywhere else
64 all-local:
65 @echo --- Building Mac Bundle ---
66 rm -rf $(BUNDLE)
67 mkdir -p $(BUNDLE)/Contents/MacOS
68 mkdir -p $(BUNDLE)/Contents/Resources
69 mkdir -p $(BUNDLE)/Contents/Plugins
70 cp Info.plist $(BUNDLE)/Contents
71 cp $(srcdir)/lxdreamrc $(BUNDLE)/Contents/Resources
72 cp src/lxdream $(BUNDLE)/Contents/MacOS
73 cp -R src/*.dylib $(BUNDLE)/Contents/Plugins
74 cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
75 $(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
76 for cat in $(CATALOGS); do \
77 catname=`basename "$$cat"`; \
78 catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
79 mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
80 cp "$(top_srcdir)/po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(INSTOBJEXT)"; \
81 done
82 @echo --- Done ---
83 endif
85 bundle: all
.