Search
lxdream.org :: lxdream/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename Makefile.am
changeset 894:1ddd5616c5af
prev866:86cd01c2b2d3
next900:609fa702406b
author nkeynes
date Fri Oct 24 10:38:43 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Update debian changelog
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
    14 CLEANFILES = lxdream.1
    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/*.png; 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 clean-local:
    37 	rm -rf $(BUNDLE)
    39 dist-hook:
    40 	if test -d $(srcdir)/pixmaps; then \
    41 	  mkdir $(distdir)/pixmaps; \
    42 	  for pixmap in $(srcdir)/pixmaps/*; do \
    43 	    if test -f $$pixmap; then \
    44 	      cp -p $$pixmap $(distdir)/pixmaps; \
    45 	    fi \
    46 	  done \
    47 	fi
    48 	if test -d $(srcdir)/debian; then \
    49 	  mkdir $(distdir)/debian; \
    50 	  for f in $(srcdir)/debian/*; do \
    51 	    if test -f $$f; then \
    52 	      cp -p $$f $(distdir)/debian; \
    53 	    fi \
    54 	  done \
    55 	fi
    57 if GUI_COCOA
    58 # Build a Mac OS X bundle. This is meaningless anywhere else
    59 all-local:
    60 	@echo --- Building Mac Bundle ---
    61 	rm -rf $(BUNDLE)
    62 	mkdir -p $(BUNDLE)/Contents/MacOS
    63 	mkdir -p $(BUNDLE)/Contents/Resources
    64 	cp Info.plist $(BUNDLE)/Contents
    65 	cp $(srcdir)/lxdreamrc $(BUNDLE)/Contents/Resources
    66 	cp src/lxdream $(BUNDLE)/Contents/MacOS
    67 	cp -R $(srcdir)/pixmaps/* $(BUNDLE)/Contents/Resources
    68 	$(srcdir)/bundlelibs.pl $(BUNDLE)/Contents/MacOS/lxdream $(BUNDLE)/Contents/Frameworks
    69 	for cat in $(CATALOGS); do \
    70 	   catname=`basename "$$cat"`; \
    71 	   catname=`echo $$catname|sed -e 's/$(CATOBJEXT)$$//'`; \
    72 	   mkdir -p "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES"; \
    73 	   cp "$(top_srcdir)/po/$$cat" "$(BUNDLE)/Contents/Resources/$$catname/LC_MESSAGES/lxdream$(INSTOBJEXT)"; \
    74 	done
    75 	@echo --- Done ---
    76 endif
    78 bundle: all
.