Search
lxdream.org :: lxdream/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 731:ee2e929cca3a
prev719:8ce31b3d0dab
next745:fd9785b15068
author nkeynes
date Tue Jul 08 12:29:53 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Fixup out-of-tree builds to work properly, mostly fix dist target
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@731
    11
EXTRA_DIST = autogen.sh lxdream.pod bundlelibs.pl
nkeynes@1
    12
nkeynes@700
    13
man_MANS = lxdream.1
nkeynes@700
    14
nkeynes@700
    15
lxdream.1: lxdream.pod
nkeynes@700
    16
	$(POD2MAN) $< $@
nkeynes@700
    17
nkeynes@1
    18
install-data-local:
nkeynes@1
    19
	@$(NORMAL_INSTALL)
nkeynes@1
    20
	if test -d $(srcdir)/pixmaps; then \
nkeynes@1
    21
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
nkeynes@1
    22
	  for pixmap in $(srcdir)/pixmaps/*; do \
nkeynes@1
    23
	    if test -f $$pixmap; then \
nkeynes@1
    24
	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
nkeynes@1
    25
	    fi \
nkeynes@1
    26
	  done \
nkeynes@1
    27
	fi
nkeynes@517
    28
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
nkeynes@517
    29
	$(INSTALL_DATA) lxdreamrc $(DESTDIR)$(sysconfdir)
nkeynes@1
    30
nkeynes@1
    31
dist-hook:
nkeynes@731
    32
	if test -d $(srcdir)/pixmaps; then \
nkeynes@1
    33
	  mkdir $(distdir)/pixmaps; \
nkeynes@731
    34
	  for pixmap in $(srcdir)/pixmaps/*; do \
nkeynes@1
    35
	    if test -f $$pixmap; then \
nkeynes@1
    36
	      cp -p $$pixmap $(distdir)/pixmaps; \
nkeynes@1
    37
	    fi \
nkeynes@1
    38
	  done \
nkeynes@1
    39
	fi
nkeynes@1
    40
nkeynes@692
    41
if GUI_COCOA
nkeynes@681
    42
# Build a Mac OS X bundle. This is meaningless anywhere else
nkeynes@692
    43
all-local:
nkeynes@692
    44
	@echo --- Building Mac Bundle ---
nkeynes@717
    45
	rm -rf $(BUNDLE)
nkeynes@717
    46
	mkdir -p $(BUNDLE)/Contents/MacOS
nkeynes@717
    47
	mkdir -p $(BUNDLE)/Contents/Resources
nkeynes@717
    48
	cp src/lxdream $(BUNDLE)/Contents/MacOS
nkeynes@731
    49
	cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
nkeynes@717
    50
	$(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
nkeynes@715
    51
	for cat in $(CATALOGS); do \
nkeynes@715
    52
	   catname=`basename "$$cat"`; \
nkeynes@715
    53
	   catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
nkeynes@717
    54
	   mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
nkeynes@719
    55
	   cp "po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(CATOBJEXT)"; \
nkeynes@715
    56
	done
nkeynes@692
    57
	@echo --- Done ---
nkeynes@692
    58
endif
nkeynes@692
    59
nkeynes@692
    60
bundle: all
.