X-Git-Url: https://git.distorted.org.uk/~mdw/skel/blobdiff_plain/7fb0878b62328fd3bf80e2142a5d68b314105eb1..e9eedc6b8ae73209558b1c17879f49a648601efb:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 162746f..e994490 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,61 +1,111 @@ -## -*-makefile-*- -## -## $Id: Makefile.am,v 1.1 1999/04/05 13:44:59 mdw Exp $ -## -## 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. - -##----- Revision history ---------------------------------------------------- -## -## $Log: Makefile.am,v $ -## Revision 1.1 1999/04/05 13:44:59 mdw -## Initial revision -## - -## --- Basic automake configuration --- - -AUTOMAKE_OPTIONS = foreign - -## --- Emacs lisp files to build --- - -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.y \ - skelrc.el \ - skelrc.pm skelrc.pl \ - skelrc.am skelrc.in \ - skeleton.skel skelrc.skel \ - skeleton.texi skelrc.texi - -## --- Things to distribute --- - -EXTRA_DIST = \ - $(pkgdata_DATA) \ - skel-init.el - -##----- That's all, folks --------------------------------------------------- +### -*-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. + +lisp_LISP = +ELCFILES = + +CLEANFILES = +EXTRA_DIST = + +confsubst = $(top_srcdir)/config/confsubst +SUBSTITUTIONS = \ + PACKAGE=$(PACKAGE) VERSION=$(VERSION) \ + skeldir=$(skeldir) + +###-------------------------------------------------------------------------- +### Emacs Lisp stuff. + +CLEANFILES += *.elc + +## Main program. +lisp_LISP += skel.el +ELCFILES += skel.elc +EXTRA_DIST += skel.el.in +CLEANFILES += skel.el + +skel.el: skel.el.in Makefile + $(confsubst) $(srcdir)/skel.el.in $(SUBSTITUTIONS)>$@.new + mv $@.new $@ + +## Loader stub. +lisp_LISP += skel-init.el +EXTRA_DIST += skel-init.el + +###-------------------------------------------------------------------------- +### Skeleton files for various languages. + +skel_DATA = skeleton skelrc +EXTRA_DIST += $(skel_DATA) + +## C and related languages +skel_DATA += skelrc.c skelrc.h +skel_DATA += skelrc.cc +skel_DATA += skelrc.m +skel_DATA += skelrc.cs +skel_DATA += skelrc.java + +## Lisp +skel_DATA += skelrc.lisp +skel_DATA += skelrc.scm +skel_DATA += skelrc.el + +## Python +skel_DATA += skelrc.py skelrc.pyx + +## Perl +skel_DATA += skelrc.pl skelrc.pm + +## Autotools +skel_DATA += skelrc.am skelrc.ac skelrc.at + +## Haskell +skel_DATA += skelrc.hs + +## TeX and related languages +skel_DATA += skelrc.tex +skel_DATA += skeleton.texi skelrc.texi + +## Skeleton files +skel_DATA += skeleton.skel skelrc.skel + +###-------------------------------------------------------------------------- +### Making releases. + +EXTRA_DIST += config/auto-version config/confsubst + +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE + +###-------------------------------------------------------------------------- +### Debian. + +EXTRA_DIST += debian/control debian/copyright +EXTRA_DIST += debian/changelog debian/rules + +EXTRA_DIST += debian/skel.emacsen-install +EXTRA_DIST += debian/skel.emacsen-remove +EXTRA_DIST += debian/skel.emacsen-startup + +###----- That's all, folks --------------------------------------------------