PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Makefile

http://github.com/perlorg/cpanorg
Makefile | 39 lines | 25 code | 14 blank | 0 comment | 0 complexity | 2dc3c8a5e58b04e280f7658727b4219f MD5 | raw file
 1
 2EXT_BAT=
 3EXT_EXE=
 4CPANM=cpanm$(EXT_BAT)
 5PERL=perl$(EXT_EXE)
 6TTREE=ttree$(EXT_BAT)
 7RSYNC=rsync$(EXT_EXE)
 8
 9SRC=src
10
11all: build
12
13clean: buildclean
14
15update: update-data build
16
17update-master: update
18	@$(RSYNC) --temp-dir=/cpan/tmp -a html/ ../CPAN/
19
20buildclean: rmclean build
21
22rmclean:
23	$(PERL) -MExtUtils::Command -e "rm_rf" -- html
24
25build: data/cpan-stats.json
26	@$(TTREE) "--src=$(SRC)" -f tt.rc
27
28data/cpan-stats.json: update-data
29
30update-data:
31	@$(PERL) ./bin/cpanorg_rss_fetch
32	@$(PERL) ./bin/update_data
33
34update-daily:
35	@$(PERL) ./bin/cpanorg_perl_releases
36
37install:
38	$(CPANM) Template JSON Template::Plugin::Comma Template::Plugin::JSON XML::RSS local::lib File::Slurp
39