Search
lxdream.org :: lxdream/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 749:f06c5a12903a
prev748:4fa68ea01d29
next752:9458edce8861
author nkeynes
date Sat Jul 19 02:34:11 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Fix make clean target
And therefore (finally) fix the distcheck target overall
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@1
    48
nkeynes@692
    49
if GUI_COCOA
nkeynes@681
    50
# Build a Mac OS X bundle. This is meaningless anywhere else
nkeynes@692
    51
all-local:
nkeynes@692
    52
	@echo --- Building Mac Bundle ---
nkeynes@717
    53
	rm -rf $(BUNDLE)
nkeynes@717
    54
	mkdir -p $(BUNDLE)/Contents/MacOS
nkeynes@717
    55
	mkdir -p $(BUNDLE)/Contents/Resources
nkeynes@717
    56
	cp src/lxdream $(BUNDLE)/Contents/MacOS
nkeynes@731
    57
	cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
nkeynes@717
    58
	$(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
nkeynes@715
    59
	for cat in $(CATALOGS); do \
nkeynes@715
    60
	   catname=`basename "$$cat"`; \
nkeynes@715
    61
	   catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
nkeynes@717
    62
	   mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
nkeynes@745
    63
	   cp "$(top_srcdir)/po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(CATOBJEXT)"; \
nkeynes@715
    64
	done
nkeynes@692
    65
	@echo --- Done ---
nkeynes@692
    66
endif
nkeynes@692
    67
nkeynes@692
    68
bundle: all
.