Search
lxdream.org :: lxdream/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 1024:c67f2d61ab97
prev1017:f94af28e38b7
next1053:7a9a5eef34ac
author nkeynes
date Sat Jun 13 00:50:48 2009 +0000 (10 years ago)
permissions -rw-r--r--
last change Build drivers with library dependencies as shared objects (ie plugins)
file annotate diff log raw
nkeynes@1
     1
## Process this file with automake to produce Makefile.in
nkeynes@1
     2
nkeynes@700
     3
POD2MAN=@POD2MAN@
nkeynes@717
     4
BUNDLE=lxdream.app
nkeynes@700
     5
nkeynes@521
     6
if BUILD_SYSTEST
nkeynes@521
     7
  TEST_SUBDIR = test
nkeynes@521
     8
endif
nkeynes@521
     9
SUBDIRS = src po $(TEST_SUBDIR)
nkeynes@1
    10
nkeynes@1017
    11
EXTRA_DIST = autogen.sh lxdream.pod lxdream.desktop bundlelibs.pl
nkeynes@1
    12
nkeynes@747
    13
dist_sysconf_DATA = lxdreamrc
nkeynes@749
    14
CLEANFILES = lxdream.1
nkeynes@700
    15
man_MANS = lxdream.1
nkeynes@700
    16
nkeynes@700
    17
lxdream.1: lxdream.pod
nkeynes@700
    18
	$(POD2MAN) $< $@
nkeynes@700
    19
nkeynes@1
    20
install-data-local:
nkeynes@1
    21
	@$(NORMAL_INSTALL)
nkeynes@1
    22
	if test -d $(srcdir)/pixmaps; then \
nkeynes@1
    23
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
nkeynes@900
    24
	  for pixmap in $(srcdir)/pixmaps/*.png $(srcdir)/pixmaps/*.gif; do \
nkeynes@1
    25
	    if test -f $$pixmap; then \
nkeynes@1
    26
	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
nkeynes@1
    27
	    fi \
nkeynes@1
    28
	  done \
nkeynes@1
    29
	fi
nkeynes@1017
    30
	$(INSTALL_DATA) $(srcdir)/lxdream.desktop $(DESTDIR)$(datadir)/applications
nkeynes@1017
    31
	$(INSTALL_DATA) $(srcdir)/pixmaps/lxdream.png $(DESTDIR)$(datadir)/pixmaps
nkeynes@517
    32
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
nkeynes@1
    33
nkeynes@748
    34
uninstall-local:
nkeynes@748
    35
	@$(NORMAL_UNINSTALL) 
nkeynes@1017
    36
	rm -rf $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE)
nkeynes@1017
    37
	rm -f $(DESTDIR)$(datadir)/pixmaps/lxdream.png
nkeynes@1017
    38
	rm -f $(DESTDIR)$(datadir)/applications/lxdream.desktop
nkeynes@749
    39
nkeynes@749
    40
clean-local:
nkeynes@749
    41
	rm -rf $(BUNDLE)
nkeynes@748
    42
               
nkeynes@1
    43
dist-hook:
nkeynes@731
    44
	if test -d $(srcdir)/pixmaps; then \
nkeynes@1
    45
	  mkdir $(distdir)/pixmaps; \
nkeynes@731
    46
	  for pixmap in $(srcdir)/pixmaps/*; do \
nkeynes@1
    47
	    if test -f $$pixmap; then \
nkeynes@1
    48
	      cp -p $$pixmap $(distdir)/pixmaps; \
nkeynes@1
    49
	    fi \
nkeynes@1
    50
	  done \
nkeynes@1
    51
	fi
nkeynes@752
    52
	if test -d $(srcdir)/debian; then \
nkeynes@752
    53
	  mkdir $(distdir)/debian; \
nkeynes@752
    54
	  for f in $(srcdir)/debian/*; do \
nkeynes@752
    55
	    if test -f $$f; then \
nkeynes@752
    56
	      cp -p $$f $(distdir)/debian; \
nkeynes@752
    57
	    fi \
nkeynes@752
    58
	  done \
nkeynes@752
    59
	fi
nkeynes@1
    60
nkeynes@692
    61
if GUI_COCOA
nkeynes@681
    62
# Build a Mac OS X bundle. This is meaningless anywhere else
nkeynes@692
    63
all-local:
nkeynes@692
    64
	@echo --- Building Mac Bundle ---
nkeynes@717
    65
	rm -rf $(BUNDLE)
nkeynes@717
    66
	mkdir -p $(BUNDLE)/Contents/MacOS
nkeynes@717
    67
	mkdir -p $(BUNDLE)/Contents/Resources
nkeynes@1024
    68
	mkdir -p $(BUNDLE)/Contents/Plugins
nkeynes@778
    69
	cp Info.plist $(BUNDLE)/Contents
nkeynes@894
    70
	cp $(srcdir)/lxdreamrc $(BUNDLE)/Contents/Resources
nkeynes@717
    71
	cp src/lxdream $(BUNDLE)/Contents/MacOS
nkeynes@1024
    72
	cp -R src/*.dylib $(BUNDLE)/Contents/Plugins
nkeynes@731
    73
	cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
nkeynes@717
    74
	$(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
nkeynes@715
    75
	for cat in $(CATALOGS); do \
nkeynes@715
    76
	   catname=`basename "$$cat"`; \
nkeynes@715
    77
	   catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
nkeynes@717
    78
	   mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
nkeynes@772
    79
	   cp "$(top_srcdir)/po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(INSTOBJEXT)"; \
nkeynes@715
    80
	done
nkeynes@692
    81
	@echo --- Done ---
nkeynes@692
    82
endif
nkeynes@692
    83
nkeynes@692
    84
bundle: all
.