forked from doriantaylor/p5-app-ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
85 lines (60 loc) · 1.86 KB
/
Makefile.PL
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env perl
# IMPORTANT: if you delete this file your app will not work as
# expected. You have been warned.
use inc::Module::Install 1.02;
# Complain loudly if you don't have Catalyst::Devel installed or
# haven't said 'make dist' to create a standalone tarball.
use Module::Install::Catalyst;
name 'App-IBIS';
all_from 'lib/App/IBIS.pm';
# need these files
requires_external_bin 'npm';
requires_external_bin 'psass';
# this makes it more amenable to dockerization among other things
cpanfile;
catalyst_ignore(qw(
MANIFEST.* blib maint js node_modules Dockerfile
\.dockerignore .*\.(db|out|ttl|org|yml|gz|zip)
));
catalyst;
postamble <<'POSTAMBLE';
.PHONY : scss nodejs .nodejs
root/asset/main.scss :
$(NOECHO) $(NOOP)
js/d3.js :
$(NOECHO) $(NOOP)
js/rdf.js :
$(NOECHO) $(NOOP)
js/rdf-viz.js :
$(NOECHO) $(NOOP)
js/force-directed.js :
$(NOECHO) $(NOOP)
js/hierarchical.js :
$(NOECHO) $(NOOP)
root/asset/main.css : root/asset/main.scss
if which psass > /dev/null; then cd root/asset; psass -t expanded -o main.css main.scss; cd -; fi
scss : root/asset/main.css
$(NOECHO) $(NOOP)
# .nodejs :
# if which npm >/dev/null; then cd js; npm run build; cd -; fi
root/asset/d3.js : js/d3.js
$(NOECHO) $(NOOP)
root/asset/rdf.js : js/rdf.js
$(NOECHO) $(NOOP)
root/asset/rdf-viz.js : js/rdf-viz.js
$(NOECHO) $(NOOP)
root/asset/force-directed.js : js/force-directed.js
$(NOECHO) $(NOOP)
root/asset/hierarchical.js : js/hierarchical.js
$(NOECHO) $(NOOP)
nodejs : root/asset/d3.js root/asset/rdf.js root/asset/rdf-viz.js root/asset/force-directed.js root/asset/hierarchical.js
if which npm >/dev/null; then cd js; npm run build; cd -; fi
# $(NOECHO) $(NOOP)
non_perl : scss nodejs
$(NOECHO) $(NOOP)
pure_all :: non_perl
$(NOECHO) $(NOOP)
POSTAMBLE
install_script glob('script/*.pl');
auto_install;
WriteAll;