1## Process this file with automake to produce Makefile.in -*-Makefile-*- 2## Configure input file for elfutils. 3## 4## Copyright (C) 2004, 2005, 2008, 2009, 2011, 2015, 2016 Red Hat, Inc. 5## This file is part of elfutils. 6## 7## This file is free software; you can redistribute it and/or modify 8## it under the terms of either 9## 10## * the GNU Lesser General Public License as published by the Free 11## Software Foundation; either version 3 of the License, or (at 12## your option) any later version 13## 14## or 15## 16## * the GNU General Public License as published by the Free 17## Software Foundation; either version 2 of the License, or (at 18## your option) any later version 19## 20## or both in parallel, as here. 21## 22## elfutils is distributed in the hope that it will be useful, but 23## WITHOUT ANY WARRANTY; without even the implied warranty of 24## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 25## General Public License for more details. 26## 27## You should have received copies of the GNU General Public License and 28## the GNU Lesser General Public License along with this program. If 29## not, see <http://www.gnu.org/licenses/>. 30## 31EXTRA_DIST = elfutils.spec.in known-dwarf.awk 10-default-yama-scope.conf \ 32 libelf.pc.in libdw.pc.in libdebuginfod.pc.in \ 33 debuginfod.service debuginfod.sysconfig profile.sh.in profile.csh.in 34 35pkgconfigdir = $(libdir)/pkgconfig 36pkgconfig_DATA = libelf.pc libdw.pc 37if LIBDEBUGINFOD 38pkgconfig_DATA += libdebuginfod.pc 39 40install-data-local: 41 $(INSTALL_DATA) profile.sh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh 42 $(INSTALL_DATA) profile.csh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh 43 mkdir -p $(DESTDIR)$(sysconfdir)/debuginfod 44 if [ -n "@DEBUGINFOD_URLS@" ]; then \ 45 echo "@DEBUGINFOD_URLS@" > $(DESTDIR)$(sysconfdir)/debuginfod/elfutils.urls; \ 46 fi 47 48uninstall-local: 49 rm -f $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh 50 rm -f $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh 51 rm -f $(DESTDIR)$(sysconfdir)/debuginfod/elfutils.urls 52 -rmdir $(DESTDIR)$(sysconfdir)/debuginfod 53endif 54 55if MAINTAINER_MODE 56$(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS 57 @tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \ 58 date +'* %a %b %e %Y' | tr '[\n]' '[ ]' > $$tmpname; \ 59 username=$$(git config --get user.name); \ 60 useremail=$$(git config --get user.email); \ 61 echo -n "$$username <$$useremail> " >> $$tmpname; \ 62 awk '\ 63 $$1 == "Version" && started { exit } \ 64 $$1 == "Version" { started=1; line=""; sub(/:/,"",$$2); \ 65 print $$2 "-1"; next } \ 66 NF > 0 { line = (line != "") ? (line " " $$0) : ("- " $$0) } \ 67 NF == 0 && line != "" { print line; line="" } \ 68 END { if (line != "") print line; print "" }' $< \ 69 | fold -s -w 70 | sed '1!s/^[^-]/ &/' >> $$tmpname; \ 70 sed "/^%changelog/r $$tmpname" $@ > $@.new; \ 71 rm -f $$tmpname; \ 72 mv -f $@.new $@ 73endif 74