Description: Fix pkglibdir as not a legitimate directory
             for `SCRIPTS' and `PROGRAMS'.
Author: Mnica Ramrez Arceda <monica@probeta.net>
Last-Update: 2012-03-23
Bug-Debian: http://bugs.debian.org/663612
--- a/utils/Makefile.am
+++ b/utils/Makefile.am
@@ -1,7 +1,8 @@
 nodist_bin_SCRIPTS = crossloop.pl crossloop player_dl.pl
 dist_bin_SCRIPTS = crossloop.web
-nodist_pkglib_SCRIPTS =
-dist_pkglib_SCRIPTS = mktable.script add_throw.perl metaserver.pl
+programfilesdir = $(pkglibdir)
+nodist_programfiles_SCRIPTS =
+dist_programfiles_SCRIPTS = mktable.script add_throw.perl metaserver.pl
 dist_noinst_SCRIPTS = ad2c.script mktable.script player_dl.html cfmeta-rrd
 
 EXTRA_DIST =
--- a/random_maps/Makefile.am
+++ b/random_maps/Makefile.am
@@ -23,8 +23,8 @@
 #
 #   The author can be reached via e-mail to mark@pyramid.com
 
-
-pkglib_PROGRAMS = random_map
+programfilesdir = $(pkglibdir)
+programfiles_PROGRAMS = random_map
 
 random_map_SOURCES = standalone.c
 
