Search
lxdream.org :: lxdream/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 692:44b8ded54a9c
prev681:1755a126b109
next700:4650d0c7f6f9
author nkeynes
date Fri Jun 20 05:42:42 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Build the bundle automatically if we're using COCOA... makes life slightly easier
file annotate diff log raw
nkeynes@1
     1
## Process this file with automake to produce Makefile.in
nkeynes@1
     2
nkeynes@521
     3
if BUILD_SYSTEST
nkeynes@521
     4
  TEST_SUBDIR = test
nkeynes@521
     5
endif
nkeynes@521
     6
SUBDIRS = src po $(TEST_SUBDIR)
nkeynes@1
     7
nkeynes@459
     8
EXTRA_DIST = autogen.sh
nkeynes@1
     9
nkeynes@1
    10
install-data-local:
nkeynes@1
    11
	@$(NORMAL_INSTALL)
nkeynes@1
    12
	if test -d $(srcdir)/pixmaps; then \
nkeynes@1
    13
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
nkeynes@1
    14
	  for pixmap in $(srcdir)/pixmaps/*; do \
nkeynes@1
    15
	    if test -f $$pixmap; then \
nkeynes@1
    16
	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
nkeynes@1
    17
	    fi \
nkeynes@1
    18
	  done \
nkeynes@1
    19
	fi
nkeynes@517
    20
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
nkeynes@517
    21
	$(INSTALL_DATA) lxdreamrc $(DESTDIR)$(sysconfdir)
nkeynes@1
    22
nkeynes@1
    23
dist-hook:
nkeynes@1
    24
	if test -d pixmaps; then \
nkeynes@1
    25
	  mkdir $(distdir)/pixmaps; \
nkeynes@1
    26
	  for pixmap in pixmaps/*; do \
nkeynes@1
    27
	    if test -f $$pixmap; then \
nkeynes@1
    28
	      cp -p $$pixmap $(distdir)/pixmaps; \
nkeynes@1
    29
	    fi \
nkeynes@1
    30
	  done \
nkeynes@1
    31
	fi
nkeynes@1
    32
nkeynes@692
    33
if GUI_COCOA
nkeynes@681
    34
# Build a Mac OS X bundle. This is meaningless anywhere else
nkeynes@692
    35
all-local:
nkeynes@692
    36
	@echo --- Building Mac Bundle ---
nkeynes@681
    37
	mkdir -p lxdream.app/Contents/MacOS
nkeynes@681
    38
	mkdir -p lxdream.app/Contents/Resources
nkeynes@681
    39
	cp src/lxdream lxdream.app/Contents/MacOS
nkeynes@681
    40
	cp -R pixmaps/* lxdream.app/Contents/Resources
nkeynes@692
    41
	@echo --- Done ---
nkeynes@692
    42
endif
nkeynes@692
    43
nkeynes@692
    44
bundle: all
.