Search
lxdream.org :: lxdream/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 748:4fa68ea01d29
prev747:c2d22fd75c95
next749:f06c5a12903a
author nkeynes
date Sat Jul 19 00:56:54 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Add uninstall hook for pixmaps
Fix distcheck in the test dir
Add missing joy_linux.h to dist
view annotate diff log raw
     1 ## Process this file with automake to produce Makefile.in
     3 POD2MAN=@POD2MAN@
     4 BUNDLE=lxdream.app
     6 if BUILD_SYSTEST
     7   TEST_SUBDIR = test
     8 endif
     9 SUBDIRS = src po $(TEST_SUBDIR)
    11 EXTRA_DIST = autogen.sh lxdream.pod bundlelibs.pl
    13 dist_sysconf_DATA = lxdreamrc
    15 man_MANS = lxdream.1
    17 lxdream.1: lxdream.pod
    18 	$(POD2MAN) $< $@
    20 install-data-local:
    21 	@$(NORMAL_INSTALL)
    22 	if test -d $(srcdir)/pixmaps; then \
    23 	  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
    24 	  for pixmap in $(srcdir)/pixmaps/*; do \
    25 	    if test -f $$pixmap; then \
    26 	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
    27 	    fi \
    28 	  done \
    29 	fi
    30 	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
    32 uninstall-local:
    33 	@$(NORMAL_UNINSTALL) 
    34 	rm -rf $(DESTDIR)$(datadir)/pixmaps
    36 dist-hook:
    37 	if test -d $(srcdir)/pixmaps; then \
    38 	  mkdir $(distdir)/pixmaps; \
    39 	  for pixmap in $(srcdir)/pixmaps/*; do \
    40 	    if test -f $$pixmap; then \
    41 	      cp -p $$pixmap $(distdir)/pixmaps; \
    42 	    fi \
    43 	  done \
    44 	fi
    46 if GUI_COCOA
    47 # Build a Mac OS X bundle. This is meaningless anywhere else
    48 all-local:
    49 	@echo --- Building Mac Bundle ---
    50 	rm -rf $(BUNDLE)
    51 	mkdir -p $(BUNDLE)/Contents/MacOS
    52 	mkdir -p $(BUNDLE)/Contents/Resources
    53 	cp src/lxdream $(BUNDLE)/Contents/MacOS
    54 	cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
    55 	$(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
    56 	for cat in $(CATALOGS); do \
    57 	   catname=`basename "$$cat"`; \
    58 	   catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
    59 	   mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
    60 	   cp "$(top_srcdir)/po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(CATOBJEXT)"; \
    61 	done
    62 	@echo --- Done ---
    63 endif
    65 bundle: all
.