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
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 man_MANS = lxdream.1
    15 lxdream.1: lxdream.pod
    16 	$(POD2MAN) $< $@
    18 install-data-local:
    19 	@$(NORMAL_INSTALL)
    20 	if test -d $(srcdir)/pixmaps; then \
    21 	  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
    22 	  for pixmap in $(srcdir)/pixmaps/*; do \
    23 	    if test -f $$pixmap; then \
    24 	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
    25 	    fi \
    26 	  done \
    27 	fi
    28 	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
    29 	$(INSTALL_DATA) lxdreamrc $(DESTDIR)$(sysconfdir)
    31 dist-hook:
    32 	if test -d $(srcdir)/pixmaps; then \
    33 	  mkdir $(distdir)/pixmaps; \
    34 	  for pixmap in $(srcdir)/pixmaps/*; do \
    35 	    if test -f $$pixmap; then \
    36 	      cp -p $$pixmap $(distdir)/pixmaps; \
    37 	    fi \
    38 	  done \
    39 	fi
    41 if GUI_COCOA
    42 # Build a Mac OS X bundle. This is meaningless anywhere else
    43 all-local:
    44 	@echo --- Building Mac Bundle ---
    45 	rm -rf $(BUNDLE)
    46 	mkdir -p $(BUNDLE)/Contents/MacOS
    47 	mkdir -p $(BUNDLE)/Contents/Resources
    48 	cp src/lxdream $(BUNDLE)/Contents/MacOS
    49 	cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
    50 	$(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
    51 	for cat in $(CATALOGS); do \
    52 	   catname=`basename "$$cat"`; \
    53 	   catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
    54 	   mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
    55 	   cp "po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(CATOBJEXT)"; \
    56 	done
    57 	@echo --- Done ---
    58 endif
    60 bundle: all
.