# Automatic generation of BuildRequires dependencies for rpmbuild. # Copyright (C) 2008 Red Hat Inc. # Written by Richard W.M. Jones # # This program 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. # # This program 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 this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. AM_CFLAGS = -Wall libexec_PROGRAMS = auto-buildrequires-preload.so auto_buildrequires_preload_so_SOURCES = auto-buildrequires-preload.c auto_buildrequires_preload_so_CFLAGS = -fPIC -shared # We need this in LDFLAGS, otherwise automake won't pass it # on the command line when linking the .so file. auto_buildrequires_preload_so_LDFLAGS = -ldl bin_SCRIPTS = auto-br auto-br-rpmbuild auto-br: auto-br.sh cp $< $@ chmod +x $@ auto-br-rpmbuild: auto-br-rpmbuild.sh cp $< $@ chmod +x $@ man_MANS = autobuildrequires.1 auto-br.1 auto-br-rpmbuild.1 autobuildrequires.1: autobuildrequires.pod rm -f $@-t pod2man --section 1 $< > $@-t mv $@-t $@ CLEANFILES = $(bin_SCRIPTS) *~ libexec_SCRIPTS = auto-br-analyze.pl EXTRA_DIST = \ autobuildrequires.pod \ auto-br-analyze.pl.in \ auto-br.1 \ auto-br.sh.in \ auto-br-rpmbuild.sh \ auto-br-rpmbuild.1 \ auto-buildrequires.spec \ auto-buildrequires.spec.in