filename | Makefile.am |
changeset | 1024:c67f2d61ab97 |
prev | 1017:f94af28e38b7 |
next | 1053:7a9a5eef34ac |
author | nkeynes |
date | Thu Jun 25 01:15:25 2009 +0000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Move configuration to .lxdream/lxdreamrc on *nix, Library/Application Support/Lxdream on OS X Create standard directories on first run Add current quick state to config file Refactor quick-state handling into dreamcast.c, and use the save directory |
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 $(INSTALL_DATA) $(srcdir)/lxdream.desktop $(DESTDIR)$(datadir)/applications
31 $(INSTALL_DATA) $(srcdir)/pixmaps/lxdream.png $(DESTDIR)$(datadir)/pixmaps
32 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
34 uninstall-local:
35 @$(NORMAL_UNINSTALL)
36 rm -rf $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE)
37 rm -f $(DESTDIR)$(datadir)/pixmaps/lxdream.png
38 rm -f $(DESTDIR)$(datadir)/applications/lxdream.desktop
40 clean-local:
41 rm -rf $(BUNDLE)
43 dist-hook:
44 if test -d $(srcdir)/pixmaps; then \
45 mkdir $(distdir)/pixmaps; \
46 for pixmap in $(srcdir)/pixmaps/*; do \
47 if test -f $$pixmap; then \
48 cp -p $$pixmap $(distdir)/pixmaps; \
49 fi \
50 done \
51 fi
52 if test -d $(srcdir)/debian; then \
53 mkdir $(distdir)/debian; \
54 for f in $(srcdir)/debian/*; do \
55 if test -f $$f; then \
56 cp -p $$f $(distdir)/debian; \
57 fi \
58 done \
59 fi
61 if GUI_COCOA
62 # Build a Mac OS X bundle. This is meaningless anywhere else
63 all-local:
64 @echo --- Building Mac Bundle ---
65 rm -rf $(BUNDLE)
66 mkdir -p $(BUNDLE)/Contents/MacOS
67 mkdir -p $(BUNDLE)/Contents/Resources
68 mkdir -p $(BUNDLE)/Contents/Plugins
69 cp Info.plist $(BUNDLE)/Contents
70 cp $(srcdir)/lxdreamrc $(BUNDLE)/Contents/Resources
71 cp src/lxdream $(BUNDLE)/Contents/MacOS
72 cp -R src/*.dylib $(BUNDLE)/Contents/Plugins
73 cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
74 $(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
75 for cat in $(CATALOGS); do \
76 catname=`basename "$$cat"`; \
77 catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
78 mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
79 cp "$(top_srcdir)/po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(INSTOBJEXT)"; \
80 done
81 @echo --- Done ---
82 endif
84 bundle: all
.