-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·50 lines (37 loc) · 1.16 KB
/
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
42
43
44
45
46
47
48
49
50
BUILDDIR := build
IMGDIR := images
LOCALESDIR := _locales
IMGBUILDDIR := $(BUILDDIR)/$(IMGDIR)
LOCALESBUILDDIR := $(BUILDDIR)/$(LOCALESDIR)
images := disp_ico_16.png disp_ico_48.png disp_ico_128.png
static := license.txt
css := options.css
js := bg.js jquery-1.5.2.min.js keyboard_shortcuts.js options.js popup.js
html := bg.html options.html popup.html
manifest := manifest.json
collect : $(images) $(static) $(css) $(js) $(html) $(manifest) | $(BUILDDIR)
release : clean collect
cd $(BUILDDIR) && zip -r -9 ../../BrowseQueue-`git describe --tags`.zip .
$(BUILDDIR) :
mkdir $(BUILDDIR)
$(IMGBUILDDIR) : | $(BUILDDIR)
mkdir $(IMGBUILDDIR)
$(LOCALESBUILDDIR) : | $(BUILDDIR)
mkdir $(LOCALESBUILDDIR)
$(images) : | $(IMGBUILDDIR)
cp $(IMGDIR)/$@ $(IMGBUILDDIR)/$@
$(static) : | $(BUILDDIR)
cp $@ $(BUILDDIR)/$@
$(css) : | $(BUILDDIR)
cp $@ $(BUILDDIR)/$@
$(js) : locales | $(BUILDDIR)
cp $@ $(BUILDDIR)/$@
$(html) : $(js) $(css) | $(BUILDDIR)
cp $@ $(BUILDDIR)/$@
$(manifest) : locales | $(BUILDDIR)
cp $@ $(BUILDDIR)/$@
locales : | $(LOCALESBUILDDIR)
cp --recursive $(LOCALESDIR)/ $(BUILDDIR)/ #$(LOCALESBUILDDIR)/
.PHONY : clean
clean :
-rm -r $(BUILDDIR)