Home | History | Annotate | Line # | Download | only in hello-ycp
Makefile.am revision 1.1
      1  1.1  christos # Example for use of GNU gettext.
      2  1.1  christos # Copyright (C) 2003 Free Software Foundation, Inc.
      3  1.1  christos # This file is in the public domain.
      4  1.1  christos #
      5  1.1  christos # Makefile configuration - processed by automake.
      6  1.1  christos 
      7  1.1  christos # General automake options.
      8  1.1  christos AUTOMAKE_OPTIONS = foreign
      9  1.1  christos ACLOCAL_AMFLAGS = -I m4
     10  1.1  christos 
     11  1.1  christos # The list of subdirectories containing Makefiles.
     12  1.1  christos SUBDIRS = m4 po
     13  1.1  christos 
     14  1.1  christos # The list of programs that are built.
     15  1.1  christos bin_SCRIPTS = hello
     16  1.1  christos all-local: hello
     17  1.1  christos CLEANFILES = hello
     18  1.1  christos 
     19  1.1  christos # The YCP program is installed as data and invoked through a shell script.
     20  1.1  christos pkgdata_DATA = hello.ycp
     21  1.1  christos hello:
     22  1.1  christos 	{ echo '#!/bin/sh'; \
     23  1.1  christos 	  echo 'if test -n "$$DISPLAY"; then'; \
     24  1.1  christos 	  echo "  exec /usr/lib/YaST2/bin/y2base '$(pkgdatadir)/hello.ycp' qt"; \
     25  1.1  christos 	  echo 'else'; \
     26  1.1  christos 	  echo "  exec /usr/lib/YaST2/bin/y2base '$(pkgdatadir)/hello.ycp' ncurses"; \
     27  1.1  christos 	  echo 'fi'; \
     28  1.1  christos 	} > $@
     29  1.1  christos 
     30  1.1  christos # Additional files to be distributed.
     31  1.1  christos EXTRA_DIST = autogen.sh autoclean.sh
     32