Search
lxdream.org :: lxdream/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 772:c0b5928dd600
prev752:9458edce8861
next778:a34b180d92f7
author nkeynes
date Mon Jul 28 04:45:24 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Fix translations - need to include lxdream.h ahead of gettext.h (always the little things...)
Install as .mo 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@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@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@1
    24
	  for pixmap in $(srcdir)/pixmaps/*; 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@517
    30
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
nkeynes@1
    31
nkeynes@748
    32
uninstall-local:
nkeynes@748
    33
	@$(NORMAL_UNINSTALL) 
nkeynes@748
    34
	rm -rf $(DESTDIR)$(datadir)/pixmaps
nkeynes@749
    35
nkeynes@749
    36
clean-local:
nkeynes@749
    37
	rm -rf $(BUNDLE)
nkeynes@748
    38
               
nkeynes@1
    39
dist-hook:
nkeynes@731
    40
	if test -d $(srcdir)/pixmaps; then \
nkeynes@1
    41
	  mkdir $(distdir)/pixmaps; \
nkeynes@731
    42
	  for pixmap in $(srcdir)/pixmaps/*; do \
nkeynes@1
    43
	    if test -f $$pixmap; then \
nkeynes@1
    44
	      cp -p $$pixmap $(distdir)/pixmaps; \
nkeynes@1
    45
	    fi \
nkeynes@1
    46
	  done \
nkeynes@1
    47
	fi
nkeynes@752
    48
	if test -d $(srcdir)/debian; then \
nkeynes@752
    49
	  mkdir $(distdir)/debian; \
nkeynes@752
    50
	  for f in $(srcdir)/debian/*; do \
nkeynes@752
    51
	    if test -f $$f; then \
nkeynes@752
    52
	      cp -p $$f $(distdir)/debian; \
nkeynes@752
    53
	    fi \
nkeynes@752
    54
	  done \
nkeynes@752
    55
	fi
nkeynes@1
    56
nkeynes@692
    57
if GUI_COCOA
nkeynes@681
    58
# Build a Mac OS X bundle. This is meaningless anywhere else
nkeynes@692
    59
all-local:
nkeynes@692
    60
	@echo --- Building Mac Bundle ---
nkeynes@717
    61
	rm -rf $(BUNDLE)
nkeynes@717
    62
	mkdir -p $(BUNDLE)/Contents/MacOS
nkeynes@717
    63
	mkdir -p $(BUNDLE)/Contents/Resources
nkeynes@717
    64
	cp src/lxdream $(BUNDLE)/Contents/MacOS
nkeynes@731
    65
	cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
nkeynes@717
    66
	$(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
nkeynes@715
    67
	for cat in $(CATALOGS); do \
nkeynes@715
    68
	   catname=`basename "$$cat"`; \
nkeynes@715
    69
	   catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
nkeynes@717
    70
	   mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
nkeynes@772
    71
	   cp "$(top_srcdir)/po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(INSTOBJEXT)"; \
nkeynes@715
    72
	done
nkeynes@692
    73
	@echo --- Done ---
nkeynes@692
    74
endif
nkeynes@692
    75
nkeynes@692
    76
bundle: all
.