-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
41 lines (27 loc) · 787 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
EXT_BAT=
EXT_EXE=
CPANM=cpanm$(EXT_BAT)
PERL=perl$(EXT_EXE)
TTREE=ttree$(EXT_BAT)
RSYNC=rsync$(EXT_EXE)
SRC=src
all: build
clean: buildclean
update: update-data build
update-master: update
@$(RSYNC) --temp-dir=/cpan/tmp -a html/ ../CPAN/
buildclean: rmclean build
rmclean:
$(PERL) -MExtUtils::Command -e "rm_rf" -- html
build: data/cpan-stats.json
@$(TTREE) "--src=$(SRC)" -f tt.rc
data/cpan-stats.json: update-data
update-data:
@$(PERL) ./bin/cpanorg_rss_fetch
@$(PERL) ./bin/update_data
update-daily:
@$(PERL) ./bin/cpanorg_perl_releases
install:
$(CPANM) Template JSON Template::Plugin::Comma Template::Plugin::JSON XML::RSS local::lib File::Slurp
update-docker:
docker run -w /cpan -v $(PWD):/cpan --rm -ti harbor.ntppool.org/perlorg/cpanorg:latest make update