-## -*-makefile-*-
-##
-## $Id$
-##
-## Makefile for skel
-##
-## (c) 1998 Mark Wooding
-##
-
-##----- Licensing notice ----------------------------------------------------
-##
-## This file is part of Skel.
-##
-## Skel is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2 of the License, or
-## (at your option) any later version.
-##
-## Skel is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with Skel; if not, write to the Free Software Foundation,
-## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-## --- Basic automake configuration ---
-
-AUTOMAKE_OPTIONS = foreign
-
-## --- Emacs lisp files to build ---
+### -*-makefile-*-
+###
+### Makefile for skel
+###
+### (c) 1998 Mark Wooding
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of Skel.
+###
+### Skel is free software; you can redistribute it and/or modify
+### it under the terms of the GNU General Public License as published by
+### the Free Software Foundation; either version 2 of the License, or
+### (at your option) any later version.
+###
+### Skel is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+### GNU General Public License for more details.
+###
+### You should have received a copy of the GNU General Public License
+### along with Skel; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+###--------------------------------------------------------------------------
+### Emacs Lisp stuff.
lisp_LISP = skel.el skel-init.el
ELCFILES = skel.elc
-## --- Other things to install ---
-
-pkgdata_DATA = \
- skeleton skelrc \
- skelrc.c skelrc.cc skelrc.h skelrc.m skelrc.y skelrc.java \
- skelrc.mxd \
- skelrc.el \
- skelrc.lisp \
- skelrc.pm skelrc.pl skelrc.py skelrc.pyx \
- skelrc.am skelrc.in \
- skelrc.wml \
- skelrc.hs skelrc.gc \
- skeleton.skel skelrc.skel \
- skeleton.texi skelrc.texi
-
-## --- Things to distribute ---
-
-EXTRA_DIST = \
- $(pkgdata_DATA) \
- skel-init.el \
+###--------------------------------------------------------------------------
+### Skeleton files for various languages.
+
+SKEL_FILES = skeleton skelrc
+
+## C and related languages
+SKEL_FILES += skelrc.c skelrc.h
+SKEL_FILES += skelrc.cc
+SKEL_FILES += skelrc.m
+SKEL_FILES += skelrc.cs
+SKEL_FILES += skelrc.java
+
+## Lisp
+SKEL_FILES += skelrc.lisp skelrc.el
+
+## Python
+SKEL_FILES += skelrc.py skelrc.pyx
+
+## Perl
+SKEL_FILES += skelrc.pl skelrc.pm
+
+## Autotools
+SKEL_FILES += skelrc.am skelrc.ac
+
+## Haskell
+SKEL_FILES += skelrc.hs
+
+## Skeleton files
+SKEL_FILES += skeleton.skel skelrc.skel
+
+## Texinfo
+SKEL_FILES += skeleton.texi skelrc.texi
+
+###--------------------------------------------------------------------------
+### What goes where.
+
+pkgdata_DATA = $(SKEL_FILES)
+
+###--------------------------------------------------------------------------
+### Distribution.
+
+EXTRA_DIST = $(SKEL_FILES) skel-init.el
+
+###--------------------------------------------------------------------------
+### Debian.
+
+EXTRA_DIST += \
debian/control debian/copyright debian/changelog debian/rules \
debian/skel.emacsen-install debian/skel.emacsen-remove \
debian/skel.emacsen-startup
-##----- That's all, folks ---------------------------------------------------
+###----- That's all, folks --------------------------------------------------
-dnl -*-m4-*-
-dnl
-dnl $Id: configure.in,v 1.8 2004/04/08 01:36:28 mdw Exp $
+dnl -*-autoconf-*-
dnl
dnl Configuration script for skel
dnl
dnl along with Skel; if not, write to the Free Software Foundation,
dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-AC_INIT(skel.el.in)
-AM_INIT_AUTOMAKE(skel, 1.1.0)
+mdw_AUTO_VERSION
+AC_INIT([Skel], AUTO_VERSION, [mdw@distorted.org.uk])
+AC_CONFIG_SRCDIR([skel.el.in])
+AM_INIT_AUTOMAKE([foreign])
+
AM_PATH_LISPDIR
mdw_DEFINE_PATHS([
skeldir=mdw_PATH([$datadir/$PACKAGE])
])
-AC_SUBST(skeldir)
+AC_SUBST([skeldir])
-AC_OUTPUT(Makefile skel.el)
+AC_CONFIG_FILES([Makefile skel.el])
+AC_OUTPUT
dnl ----- That's all, folks -------------------------------------------------
+++ /dev/null
-;;; -*-emacs-lisp-*-
-
-(skel-include "skelrc.c")
-
-(defun skelrc-mxd-header ()
- (if buffer-file-name
- (file-name-sans-extension (file-name-nondirectory buffer-file-name)))
- (skel-lookup 'mxd-header-name))
-
-(setq skel-alist
- (append
- '((preamble . "[[prologue]][[includes]][[structures]]")
- (prologue . "@mxd prologue \"[[header-name]].h\";\n\n")
- (header-name . (skelrc-mxd-header))
- (c++-guard . "#ifdef __cplusplus\n extern \"C\" {\n#endif\n\n")
- (includes . "[[includes-banner]]\n\n[[headers]]")
- (includes-banner . (skelrc-banner "Header files"))
- (headers . "")
- (structures . "[[struct-banner]]\n\n@mxd {\n\n}\n\n")
- (struct-banner . (skelrc-banner "Data structures"))
- (postamble . "[[epilogue]]\n")
- (epilogue . "\n@mxd epilogue;"))
- skel-alist))