Skip to content
Browse files

Fixing some build nits

  • Loading branch information...
1 parent 3d81dbd commit 8d62405fecee5209e988f4b46b4a3ce7e9f8d323 @frodwith committed May 2, 2011
Showing with 12 additions and 9 deletions.
  1. +2 −2 Makefile
  2. +10 −7 mkdist.pl
View
4 Makefile
@@ -1,7 +1,7 @@
%.js : %.coffee
coffee -cs < $< > $@
-JSFILES := $(shell find . -name '*.coffee' | sed s/\.coffee$$/.js/)
+JSFILES := $(shell find lib test -name '*.coffee' | sed s/\.coffee$$/.js/)
coffee: $(JSFILES)
all: coffee
@@ -10,7 +10,7 @@ test: coffee
nodeunit test/*.js
clean:
- rm -f $(JSFILES)
+ rm -f $(JSFILES) yanop*.tar.gz
dist:
perl mkdist.pl
View
17 mkdist.pl
@@ -9,13 +9,16 @@
package.json
);
-find {
- no_chdir => 1,
- wanted => sub {
- next if /\.git/;
- push @MANIFEST, $_ if /\.js$/;
- }
-}, '.';
+sub add_manifest {
+ my $re = shift;
+ find {
+ no_chdir => 1,
+ wanted => sub { push @MANIFEST, $_ if $_ =~ $re }
+ }, $_ for @_;
+}
+
+add_manifest qr/\.js$/, qw(lib test);
+add_manifest qr/\.coffee$/, 'examples';
my $version = do {
open my $pkg, '<', 'package.json';

0 comments on commit 8d62405

Please sign in to comment.
Something went wrong with that request. Please try again.