eb/ebappendix/Makefile.am
2016-10-28 20:02:30 -07:00

17 lines
569 B
Makefile

bin_SCRIPTS = ebappendix
EXTRA_DIST = ebappendix.in
CLEANFILES = ebappendix ebappendix.tmp
ebappendix: ebappendix.in $(top_srcdir)/libebutils/getopt_long.pl Makefile
rm -f ebappendix
sed -e 's;\@PERL\@;$(PERL);' \
$(srcdir)/ebappendix.in | sed '/^$$/q' > ebappendix.tmp
cat $(top_srcdir)/libebutils/getopt_long.pl >> ebappendix.tmp
sed -e 's;\@VERSION\@;$(VERSION);' \
-e 's;\@MAILING_ADDRESS\@;$(MAILING_ADDRESS);' \
$(srcdir)/ebappendix.in | sed '1,/^$$/d' >> ebappendix.tmp
cp ebappendix.tmp ebappendix
chmod +x ebappendix
rm -f ebappendix.tmp