]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - Ada95/samples/Makefile.in
ncurses 6.0 - patch 20160813
[ncurses.git] / Ada95 / samples / Makefile.in
index 0179fcf435fe140518b7346ee6be2b568cbd0a77..5b4002733608850f2847858cc5b3f9bf0f19b0e0 100644 (file)
@@ -1,5 +1,5 @@
 ##############################################################################
-# Copyright (c) 1998-2010,2011 Free Software Foundation, Inc.                #
+# Copyright (c) 1998-2012,2015 Free Software Foundation, Inc.                #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
 #
 #  Author:  Juergen Pfeifer, 1996
 #
-#  $Id: Makefile.in,v 1.41 2011/03/06 01:22:23 Nicolas.Boulenguez Exp $
+#  $Id: Makefile.in,v 1.49 2015/08/05 23:15:41 tom Exp $
 #
 .SUFFIXES:
 
-SHELL          = /bin/sh
+SHELL          = @SHELL@
 VPATH          = @srcdir@
 THIS           = Makefile
 
-x              = @PROG_EXT@
+x              = @EXEEXT@
 
 srcdir         = @srcdir@
 prefix         = @prefix@
 exec_prefix    = @exec_prefix@
+bindir         = @bindir@
+datarootdir    = @datarootdir@
+datadir                = @datadir@
 libdir         = @libdir@
 includedir     = @includedir@
 
@@ -73,6 +76,13 @@ LINK         = $(CC)
 LDFLAGS                = @LDFLAGS@ @LD_MODEL@ @LIBS@
 
 RANLIB         = @RANLIB@
+################################################################################
+BINDIR         = $(DESTDIR)$(bindir)
+DATADIR                = $(DESTDIR)$(datadir)
+LIBDIR         = $(DESTDIR)$(libdir)
+
+MY_DATADIR     = $(DATADIR)/AdaCurses
+
 ################################################################################
 ada_srcdir=../src
 
@@ -88,11 +98,11 @@ ALIB         = @cf_ada_package@
 ABASE        = $(ALIB)-curses
 
 CARGS        =-cargs $(ADAFLAGS)
-LARGS        =-largs @TEST_ARG2@ $(LD_FLAGS) -L../lib -lAdaCurses @TEST_LIBS2@
+LARGS        =-largs -L../lib -lAdaCurses @TEST_ARG2@ $(LD_FLAGS) @TEST_LIBS2@
 
-PROGS        = tour rain ncurses
+PROGS        = tour$x ncurses$x @USE_GNAT_SIGINT@ rain$x 
 
-all ::  tour$x rain$x ncurses$x
+all ::  $(PROGS)
        @echo made $@
 
 sources :
@@ -107,6 +117,22 @@ uninstall \
 uninstall.libs ::
        @echo made $@
 
+install.examples :: $(BINDIR) $(PROGS)
+       $(INSTALL) $(PROGS) $(BINDIR)
+
+install.examples :: $(MY_DATADIR)
+       $(INSTALL_DATA) explain.txt $(MY_DATADIR)
+
+uninstall.examples ::
+       -cd $(BINDIR) && rm -f $(PROGS)
+       -rmdir $(BINDIR)
+       -rm -f $(MY_DATADIR)/explain.txt
+       -rmdir $(MY_DATADIR)
+
+$(BINDIR) \
+$(MY_DATADIR) :
+       mkdir -p $@
+
 ncurses$x :
        $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)