Search
lxdream.org :: lxdream/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 1053:7a9a5eef34ac
prev1024:c67f2d61ab97
next1061:06ea56ae747f
author nkeynes
date Sun Jun 28 09:22:43 2009 +0000 (10 years ago)
permissions -rw-r--r--
last change Add mkinstalldirs line for /usr/share/applications dir (needed for package builds)
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@1053
    30
	$(mkinstalldirs) $(DESTDIR)$(datadir)/applications
nkeynes@1017
    31
	$(INSTALL_DATA) $(srcdir)/lxdream.desktop $(DESTDIR)$(datadir)/applications
nkeynes@1017
    32
	$(INSTALL_DATA) $(srcdir)/pixmaps/lxdream.png $(DESTDIR)$(datadir)/pixmaps
nkeynes@517
    33
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
nkeynes@1
    34
nkeynes@748
    35
uninstall-local:
nkeynes@748
    36
	@$(NORMAL_UNINSTALL) 
nkeynes@1017
    37
	rm -rf $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE)
nkeynes@1017
    38
	rm -f $(DESTDIR)$(datadir)/pixmaps/lxdream.png
nkeynes@1017
    39
	rm -f $(DESTDIR)$(datadir)/applications/lxdream.desktop
nkeynes@749
    40
nkeynes@749
    41
clean-local:
nkeynes@749
    42
	rm -rf $(BUNDLE)
nkeynes@748
    43
               
nkeynes@1
    44
dist-hook:
nkeynes@731
    45
	if test -d $(srcdir)/pixmaps; then \
nkeynes@1
    46
	  mkdir $(distdir)/pixmaps; \
nkeynes@731
    47
	  for pixmap in $(srcdir)/pixmaps/*; do \
nkeynes@1
    48
	    if test -f $$pixmap; then \
nkeynes@1
    49
	      cp -p $$pixmap $(distdir)/pixmaps; \
nkeynes@1
    50
	    fi \
nkeynes@1
    51
	  done \
nkeynes@1
    52
	fi
nkeynes@752
    53
	if test -d $(srcdir)/debian; then \
nkeynes@752
    54
	  mkdir $(distdir)/debian; \
nkeynes@752
    55
	  for f in $(srcdir)/debian/*; do \
nkeynes@752
    56
	    if test -f $$f; then \
nkeynes@752
    57
	      cp -p $$f $(distdir)/debian; \
nkeynes@752
    58
	    fi \
nkeynes@752
    59
	  done \
nkeynes@752
    60
	fi
nkeynes@1
    61
nkeynes@692
    62
if GUI_COCOA
nkeynes@681
    63
# Build a Mac OS X bundle. This is meaningless anywhere else
nkeynes@692
    64
all-local:
nkeynes@692
    65
	@echo --- Building Mac Bundle ---
nkeynes@717
    66
	rm -rf $(BUNDLE)
nkeynes@717
    67
	mkdir -p $(BUNDLE)/Contents/MacOS
nkeynes@717
    68
	mkdir -p $(BUNDLE)/Contents/Resources
nkeynes@1024
    69
	mkdir -p $(BUNDLE)/Contents/Plugins
nkeynes@778
    70
	cp Info.plist $(BUNDLE)/Contents
nkeynes@894
    71
	cp $(srcdir)/lxdreamrc $(BUNDLE)/Contents/Resources
nkeynes@717
    72
	cp src/lxdream $(BUNDLE)/Contents/MacOS
nkeynes@1024
    73
	cp -R src/*.dylib $(BUNDLE)/Contents/Plugins
nkeynes@731
    74
	cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
nkeynes@717
    75
	$(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
nkeynes@715
    76
	for cat in $(CATALOGS); do \
nkeynes@715
    77
	   catname=`basename "$$cat"`; \
nkeynes@715
    78
	   catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
nkeynes@717
    79
	   mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
nkeynes@772
    80
	   cp "$(top_srcdir)/po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(INSTOBJEXT)"; \
nkeynes@715
    81
	done
nkeynes@692
    82
	@echo --- Done ---
nkeynes@692
    83
endif
nkeynes@692
    84
nkeynes@692
    85
bundle: all
.