# Makefile.in # Copyright (C) 1998, 1999, 2000, 2001, 2002, # 2004, 2005, 2006, 2007, 2008 Thien-Thi Nguyen # # This file is part of ttn's personal elisp library, released under # the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3, or (at your option) any # later version. There is NO WARRANTY. See file COPYING for details. SHELL = @SHELL@ srcdir = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ PACKAGE = @PACKAGE_NAME@ VERSION = @PACKAGE_VERSION@ EMACS = @EMACS@ escript = $(EMACS) --script ebatch = $(EMACS) -batch --no-site-file sitelisp = @sitelisp@ readmefiles = README lisp/README #----------------------------------------------------------------------------- # Usage: make all: $(escript) do/make.el #----------------------------------------------------------------------------- # Usage: make clean clean: rm -f *~ setup-ttn-pers-elisp.el rm -f lisp/*/*.elc #----------------------------------------------------------------------------- # Usage: make check check: @echo sorry, there are no tests for $(PACKAGE) $(VERSION) #----------------------------------------------------------------------------- # Usage: make install # Copy various files/directories to $(sitelisp). install: $(ebatch) -l $(srcdir)/do/install.el $(sitelisp) #----------------------------------------------------------------------------- # Usage: make help # Display some helpful information. help: @echo 'Read the Makefile, or be adventurous, and try one of these:' @sed '/^# Usage:/!d;s/[^:]*://' Makefile #----------------------------------------------------------------------------- # Usage: make dist # This creates $(PACKAGE)-$(VERSION).tar.gz in the current directory. # FULL-TAG must be a valid tag. dd = $(PACKAGE)-$(VERSION) extradist = configure about.el \ lisp/autoloads.el lisp/core.el minusdist = .gitignore copyright.for-M-x-source-wrap doc/* dist: autoload-file @test -d .git || { echo ERROR: No .git subdir. ; false ; } rm -rf $(dd) $(dd).tar.gz mkdir $(dd) cp -p --parents $(wildcard $(extradist)) \ $(shell git ls-files $(addprefix -x , $(wildcard $(minusdist)))) \ $(dd) (cd $(dd) ; $(MAKE) -f ../Makefile readme-files) GZIP=--best tar czf $(dd).tar.gz $(dd) rm -rf $(dd) #----------------------------------------------------------------------------- # Usage: make autoload-file # Usage: make readme-files autoload-file: $(escript) do/update-autoload-file.el lisp/autoloads.el readme-files: $(escript) do/update-readme-files.el $(readmefiles) # Makefile.in ends here