summaryrefslogtreecommitdiffstats
path: root/jquery/Makefile
blob: 4da7f94cd3e53192bcf83849fd5ddcadf161c32a (plain)
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
JQUERY_VERSION = 3.4.1
JQUERY_UI_VERSION = 1.12.1
SCROLL_VERSION = 2.1.2
POWERTIP_VERSION = 1.3.1
TOUCHPUNCH_VERSION = 0.2.3
SMARTMENUS_VERSION = 1.1.0

MINIFIER ?= /usr/local/bin/yuicompressor-2.4.7
SCRIPTS = jquery-$(JQUERY_VERSION).min.js \
          jquery.ui-$(JQUERY_UI_VERSION).min.js \
          jquery.scrollTo-$(SCROLL_VERSION).min.js \
	  jquery.powertip-$(POWERTIP_VERSION).mod.min.js \
	  jquery.ui.touch-punch-$(TOUCHPUNCH_VERSION).min.js \
	  jquery.smartmenus-$(SMARTMENUS_VERSION).min.js
RESULTS = jquery.js doxmenu-min.css

all: $(RESULTS)

install: $(RESULTS)
	cp jquery.js ../templates/html/jquery.js
	cp doxmenu-min.css ../templates/html/tabs.css

jquery.js: $(SCRIPTS)
	cat $(SCRIPTS) > jquery.js

doxmenu-min.css: sm-core-css.css \
                 sass/sm-dox.scss \
                 sass/_round-corners-last-item.scss \
                 sass/_sm-dox.scss \
                 sass/_sub-items-indentation.scss
	compass compile --css-dir . --force sass/sm-dox.scss
	cat sm-core-css.css sm-dox.css > doxmenu.css
	java -jar $(MINIFIER).jar doxmenu.css > doxmenu-min.css
	rm -f sm-dox.css doxmenu.css

clean:
	rm -rf $(RESULTS) doxmenu.css .sass-cache