-#
-# Makefile for the Squid LDAP authentication helper
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
-
-libexec_SCRIPTS = wbinfo_group.pl
-#man_MANS = squid_wbinfo_group.8
-#EXTRA_DIST = squid_wbinfo_group.8
-EXTRA_DIST = wbinfo_group.pl
+## Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+##
+## Squid software is distributed under GPLv2+ license and includes
+## contributions from numerous individuals and organizations.
+## Please see the COPYING and CONTRIBUTORS files for details.
+##
+
+include $(top_srcdir)/src/Common.am
+
+libexec_SCRIPTS = ext_wbinfo_group_acl
+EXTRA_DIST = ext_wbinfo_group_acl.pl.in required.m4
+
+ext_wbinfo_group_acl: ext_wbinfo_group_acl.pl.in
+ $(subst_perlshell)
+
+EXTRA_DIST += ext_wbinfo_group_acl.8
+man_MANS = ext_wbinfo_group_acl.8
+
+ext_wbinfo_group_acl.8: ext_wbinfo_group_acl.pl.in
+ pod2man $(srcdir)/ext_wbinfo_group_acl.pl.in ext_wbinfo_group_acl.8
+
+CLEANFILES += ext_wbinfo_group_acl.8 ext_wbinfo_group_acl