Search
lxdream.org :: lxdream/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 715:fdbad771b4b1
prev713:e5256202cc9e
next717:bdc41b26c942
author nkeynes
date Sun Jun 29 22:54:59 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Install the message catalogs in the bundle
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@700
     4
nkeynes@521
     5
if BUILD_SYSTEST
nkeynes@521
     6
  TEST_SUBDIR = test
nkeynes@521
     7
endif
nkeynes@521
     8
SUBDIRS = src po $(TEST_SUBDIR)
nkeynes@1
     9
nkeynes@459
    10
EXTRA_DIST = autogen.sh
nkeynes@1
    11
nkeynes@700
    12
man_MANS = lxdream.1
nkeynes@700
    13
nkeynes@700
    14
lxdream.1: lxdream.pod
nkeynes@700
    15
	$(POD2MAN) $< $@
nkeynes@700
    16
nkeynes@1
    17
install-data-local:
nkeynes@1
    18
	@$(NORMAL_INSTALL)
nkeynes@1
    19
	if test -d $(srcdir)/pixmaps; then \
nkeynes@1
    20
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
nkeynes@1
    21
	  for pixmap in $(srcdir)/pixmaps/*; do \
nkeynes@1
    22
	    if test -f $$pixmap; then \
nkeynes@1
    23
	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
nkeynes@1
    24
	    fi \
nkeynes@1
    25
	  done \
nkeynes@1
    26
	fi
nkeynes@517
    27
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
nkeynes@517
    28
	$(INSTALL_DATA) lxdreamrc $(DESTDIR)$(sysconfdir)
nkeynes@1
    29
nkeynes@1
    30
dist-hook:
nkeynes@1
    31
	if test -d pixmaps; then \
nkeynes@1
    32
	  mkdir $(distdir)/pixmaps; \
nkeynes@1
    33
	  for pixmap in pixmaps/*; do \
nkeynes@1
    34
	    if test -f $$pixmap; then \
nkeynes@1
    35
	      cp -p $$pixmap $(distdir)/pixmaps; \
nkeynes@1
    36
	    fi \
nkeynes@1
    37
	  done \
nkeynes@1
    38
	fi
nkeynes@1
    39
nkeynes@692
    40
if GUI_COCOA
nkeynes@681
    41
# Build a Mac OS X bundle. This is meaningless anywhere else
nkeynes@692
    42
all-local:
nkeynes@692
    43
	@echo --- Building Mac Bundle ---
nkeynes@715
    44
	rm -rf lxdream.app
nkeynes@681
    45
	mkdir -p lxdream.app/Contents/MacOS
nkeynes@681
    46
	mkdir -p lxdream.app/Contents/Resources
nkeynes@681
    47
	cp src/lxdream lxdream.app/Contents/MacOS
nkeynes@681
    48
	cp -R pixmaps/* lxdream.app/Contents/Resources
nkeynes@713
    49
	$(srcdir)/bundlelibs.pl lxdream.app/Contents/MacOS/lxdream lxdream.app/Contents/Frameworks
nkeynes@715
    50
	for cat in $(CATALOGS); do \
nkeynes@715
    51
	   catname=`basename "$$cat"`; \
nkeynes@715
    52
	   catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
nkeynes@715
    53
	   mkdir -p "lxdream.app/Contents/Resources/$$catname/LC_MESSAGES"; \
nkeynes@715
    54
	   cp "po/$$cat" "lxdream.app/Contents/Resources/$$catname/LC_MESSAGES/lxdream.$(CATOBJEXT)"; \
nkeynes@715
    55
	done
nkeynes@692
    56
	@echo --- Done ---
nkeynes@692
    57
endif
nkeynes@692
    58
nkeynes@692
    59
bundle: all
.