Blame config/Makefile.am

Packit Service 97d2fb
## Process this file with automake to produce Makefile.in -*-Makefile-*-
Packit Service 97d2fb
## Configure input file for elfutils.
Packit Service 97d2fb
##
Packit Service 97d2fb
## Copyright (C) 2004, 2005, 2008, 2009, 2011, 2015, 2016 Red Hat, Inc.
Packit Service 97d2fb
## This file is part of elfutils.
Packit Service 97d2fb
##
Packit Service 97d2fb
## This file is free software; you can redistribute it and/or modify
Packit Service 97d2fb
## it under the terms of either
Packit Service 97d2fb
##
Packit Service 97d2fb
##   * the GNU Lesser General Public License as published by the Free
Packit Service 97d2fb
##     Software Foundation; either version 3 of the License, or (at
Packit Service 97d2fb
##     your option) any later version
Packit Service 97d2fb
##
Packit Service 97d2fb
## or
Packit Service 97d2fb
##
Packit Service 97d2fb
##   * the GNU General Public License as published by the Free
Packit Service 97d2fb
##     Software Foundation; either version 2 of the License, or (at
Packit Service 97d2fb
##     your option) any later version
Packit Service 97d2fb
##
Packit Service 97d2fb
## or both in parallel, as here.
Packit Service 97d2fb
##
Packit Service 97d2fb
## elfutils is distributed in the hope that it will be useful, but
Packit Service 97d2fb
## WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 97d2fb
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 97d2fb
## General Public License for more details.
Packit Service 97d2fb
##
Packit Service 97d2fb
## You should have received copies of the GNU General Public License and
Packit Service 97d2fb
## the GNU Lesser General Public License along with this program.  If
Packit Service 97d2fb
## not, see <http://www.gnu.org/licenses/>.
Packit Service 97d2fb
##
Packit Service 97d2fb
EXTRA_DIST = elfutils.spec.in known-dwarf.awk 10-default-yama-scope.conf \
Packit Service 97d2fb
	     libelf.pc.in libdw.pc.in libdebuginfod.pc.in \
Packit Service 97d2fb
	     debuginfod.service debuginfod.sysconfig profile.sh.in profile.csh.in
Packit Service 97d2fb
Packit Service 97d2fb
pkgconfigdir = $(libdir)/pkgconfig
Packit Service 97d2fb
pkgconfig_DATA = libelf.pc libdw.pc
Packit Service 97d2fb
if DEBUGINFOD
Packit Service 97d2fb
pkgconfig_DATA += libdebuginfod.pc
Packit Service 97d2fb
Packit Service 97d2fb
install-data-local:
Packit Service 97d2fb
	$(INSTALL_DATA) profile.sh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh
Packit Service 97d2fb
	$(INSTALL_DATA) profile.csh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh
Packit Service 97d2fb
Packit Service 97d2fb
uninstall-local:
Packit Service 97d2fb
	rm -f $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh
Packit Service 97d2fb
endif
Packit Service 97d2fb
Packit Service 97d2fb
if MAINTAINER_MODE
Packit Service 97d2fb
$(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS
Packit Service 97d2fb
	@tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \
Packit Service 97d2fb
	date +'* %a %b %e %Y' | tr '[\n]' '[ ]' > $$tmpname; \
Packit Service 97d2fb
	username=$$(git config --get user.name); \
Packit Service 97d2fb
	useremail=$$(git config --get user.email); \
Packit Service 97d2fb
	echo -n "$$username <$$useremail> " >> $$tmpname; \
Packit Service 97d2fb
	awk '\
Packit Service 97d2fb
	  $$1 == "Version" && started { exit } \
Packit Service 97d2fb
	  $$1 == "Version" { started=1; line=""; sub(/:/,"",$$2); \
Packit Service 97d2fb
			     print $$2 "-1"; next } \
Packit Service 97d2fb
	  NF > 0 { line = (line != "") ? (line " " $$0) : ("- " $$0) } \
Packit Service 97d2fb
	  NF == 0 && line != "" { print line; line="" } \
Packit Service 97d2fb
	  END { if (line != "") print line; print "" }' $< \
Packit Service 97d2fb
	| fold -s -w 70 | sed '1!s/^[^-]/  &/' >> $$tmpname; \
Packit Service 97d2fb
	sed "/^%changelog/r $$tmpname" $@ > $@.new; \
Packit Service 97d2fb
	rm -f $$tmpname; \
Packit Service 97d2fb
	mv -f $@.new $@
Packit Service 97d2fb
endif