1## Process this file with automake to produce Makefile.in 2## A Makefile.in is supplied, in case you do not have automake. 3 4## Copyright (c) 1997-2019 by Henry Kilmer and John Heasley 5## All rights reserved. 6## 7## Please see the file COPYING for the text of the license. 8 9#AUTOMAKE_OPTIONS=foreign no-dependencies 10AUTOMAKE_OPTIONS=foreign 11 12pkgdata_SCRIPTS= rancid-cvspurge rtrfilter downreport 13dist_pkgdata_SCRIPTS=getipacctg 14dist_pkgdata_DATA=README.misc cisco-load.exp cisco-reload.exp \ 15 index.html lgnotes.html 16 17EXTRA_DIST = rancid-cvspurge.in rancid.spec rtrfilter.in downreport.in 18 19CLEANFILES= rancid-cvspurge downreport 20 21all: 22 23# auto_edit does the autoconf variable substitution. This allows the 24# substitution to have the full expansion of the variables, e.g.: $sysconfdir 25# will be /prefix/etc instead of ${prefix}/etc. 26# 27# This is a bit of a PITA, but is the method recommended by the autoconf 28# documentation. 29auto_edit = sed \ 30 -e 's,@prefix\@,$(prefix),g' \ 31 -e 's,@localstatedir\@,$(localstatedir),g' \ 32 -e 's,@sysconfdir\@,$(sysconfdir),g' \ 33 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \ 34 -e 's,@ADMINMAILPLUS\@,$(ADMINMAILPLUS),g' \ 35 -e 's,@MAILPLUS\@,$(MAILPLUS),g' 36 37downreport: Makefile $(srcdir)/downreport.in 38 rm -f downreport downreport.tmp; \ 39 $(auto_edit) $(srcdir)/downreport.in >downreport.tmp; \ 40 chmod +x downreport.tmp; \ 41 mv downreport.tmp downreport 42 43rancid-cvspurge: Makefile $(srcdir)/rancid-cvspurge.in 44 rm -f rancid-cvspurge rancid-cvspurge.tmp; \ 45 $(auto_edit) $(srcdir)/rancid-cvspurge.in >rancid-cvspurge.tmp; \ 46 chmod +x rancid-cvspurge.tmp; \ 47 mv rancid-cvspurge.tmp rancid-cvspurge 48