1 # Armadillo File Manager
2 # Copyright (c) 2012, Robert Sesek <http://www.bluestatic.org>
4 # This program is free software: you can redistribute it and/or modify it under
5 # the terms of the GNU General Public License as published by the Free Software
6 # Foundation, either version 3 of the License, or any later version.
8 FRONTEND_SOURCES
=frontend
/jquery-1.7
.1.js \
11 frontend
/tv_renamer.js \
12 frontend
/path_control.js \
16 FRONTEND_BIN
=frontend
/armadillo.js
20 VERSION_FILE
=frontend
/version.js.proto2
25 frontend
: $(FRONTEND_BIN
)
27 $(FRONTEND_BIN
): $(FRONTEND_SOURCES
)
28 echo
$(foreach f
,$^
,"document.write('<script src="fe
/$(notdir $f)"></script>');\n") > $(FRONTEND_BIN
)
32 compiled
: SOURCES_FLAGS
=$(foreach f
,$(FRONTEND_SOURCES
),--js
=$f)
34 java
-jar closure-compiler.jar \
36 --js_output_file
=$(FRONTEND_BIN
) \
37 --compilation_level
=SIMPLE_OPTIMIZATIONS
42 version
: STAMP
=$(shell date
+%s
)
43 version
: BUILD
=$(shell gitcrement current
)
45 @echo
"// This file is automatically generated." > $(VERSION_FILE
)
46 @echo
>> $(VERSION_FILE
)
47 @echo
"$.namespace('armadillo.Version');" >> $(VERSION_FILE
)
48 @echo
>> $(VERSION_FILE
)
49 echo
"armadillo.Version.MAJOR = $(VERSION_MAJOR);" >> $(VERSION_FILE
)
50 echo
"armadillo.Version.MINOR = $(VERSION_MINOR);" >> $(VERSION_FILE
)
51 echo
"armadillo.Version.BUILD = $(BUILD);" >> $(VERSION_FILE
)
52 echo
"armadillo.Version.STAMP = $(STAMP);" >> $(VERSION_FILE
)