Skip to content
Makefile.am 1.53 KiB
Newer Older
Sébastien Luttringer's avatar
Sébastien Luttringer committed
# This file is part of Installsystems.
#
# Installsystems is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Installsystems 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Installsystems.  If not, see <http://www.gnu.org/licenses/>.

bashcompdir=@bashcompdir@
zshcompdir=@zshcompdir@

SUBDIRS = doc

EXTRA_DIST = COPYRIGHT LICENSE \
	misc/installsystems.conf misc/repository.conf \
	misc/zsh-completion misc/bash-completion

dist_doc_DATA = README COPYRIGHT LICENSE AUTHORS DEPENDENCIES

# main binary
dist_bin_SCRIPTS = bin/is

# python library
installsystemsdir=$(pythondir)/installsystems
installsystems_PYTHON = installsystems/*.py

CLEANFILES = $(bin_SCRIPTS)

install-exec-hook:
	ln -fs is $(DESTDIR)$(bindir)/installsystems
	install -dm755 $(DESTDIR)$(sysconfdir)/installsystems $(DESTDIR)$(bashcompdir) $(DESTDIR)$(zshcompdir)
	install -m644 misc/{repository,installsystems}.conf $(DESTDIR)$(sysconfdir)/installsystems/
	install -m644 misc/bash-completion $(DESTDIR)$(bashcompdir)/is
	install -m644 misc/zsh-completion $(DESTDIR)$(zshcompdir)/_installsystems

dist-hook:
	rm -f $(distdir)/TODO