summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 4d8f03a5ade755328a91a38eede670b066a08740 (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
39
40
41
#
# This make file creates the javascriptrdd.js file
# that contains all the other library files
# It also strips out any indentation, to save space
# 
# While the users can opt to include the single modules
# having a single file makes for easier development.
#

all: lib/javascriptrrd.js

lib/javascriptrrd.js: \
   lib/binaryXHR.js lib/rrdFile.js \
   lib/rrdFlotSupport.js lib/rrdFlot.js lib/rrdFlotMatrix.js \
   lib/rrdFilter.js lib/rrdMultiFile.js \
   lib/rrdFlotAsync.js
	cat $^ > $@

wlibs: lib/javascriptrrd.wlibs.js

lib/javascriptrrd.wlibs.js: lib/javascriptrrd.js \
   ../flot/jquery.min.js ../flot/jquery.flot.min.js  ../flot/jquery.flot.time.min.js \
   ../flot/jquery.flot.selection.min.js ../flot/jquery.flot.canvas.min.js ../flot/jquery.flot.tooltip.min.js
	cat $^ > $@

#the flot.time lnd flout.canvas ibraries only got added in v0.8 flot
#create an empty file if it does not exist for consistency
../flot/jquery.flot.time.min.js:
	touch -a ../flot/jquery.flot.time.min.js
	touch -a ../flot/jquery.flot.time.js

../flot/jquery.flot.canvas.min.js:
	touch -a ../flot/jquery.flot.canvas.min.js
	touch -a ../flot/jquery.flot.canvas.js

# in the past we were not shipping the min version, so just use the unminimized one, if needed
../flot/jquery.flot.tooltip.min.js:
	cp ../flot/jquery.flot.tooltip.js ../flot/jquery.flot.tooltip.min.js

clean:
	rm -f lib/javascriptrrd.js lib/javascriptrrd.wlibs.js