Permalink
Browse files

Drive the voting stuff from the main Makefile

  • Loading branch information...
1 parent 7877cbb commit 42874a0d5601b4a0b58a0f4b6c0f2db96118ff49 @rafl rafl committed Mar 25, 2012
Showing with 5 additions and 3 deletions.
  1. +4 −0 Makefile.PL
  2. +1 −3 Makefile.mails
View
@@ -46,3 +46,7 @@ catalyst;
install_script glob('script/*.pl');
auto_install;
WriteAll;
+
+sub MY::postamble {
+ do { local $/; open my $fh, '<', 'Makefile.mails' or die $!; <$fh> }
+}
View
@@ -1,8 +1,6 @@
VOTES := $(wildcard votes/*.json)
MANGLE_YAML_LIST := grep -E -- '-\s+[^$$]+' |sed -e's/^- //'
-all: clean update result
-
voters: data/contributors.json
dpath -i json '//login' < $< |$(MANGLE_YAML_LIST) |sort > $@
@@ -27,7 +25,7 @@ reminder-emails: not-voted addresses
update:
rsync -avvz -P metacpan.org:/home/metacpan/vote.contest.metacpan.org/votes/ votes
-clean:
+clean::
rm -f voters voted addresses not-voted reminder-emails
result: $(VOTES)

0 comments on commit 42874a0

Please sign in to comment.