-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·30 lines (21 loc) · 1.05 KB
/
Makefile
File metadata and controls
executable file
·30 lines (21 loc) · 1.05 KB
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
ZIP = zip
XPT_FILE_SRC = xpcom/src/IDictionaryApp.xpt
XPT_FILE_SRC_SRC = xpcom/src/IDictionaryApp.idl
XPT_FILE = components/IDictionaryApp.xpt
DYLIB_FILE = components/libIDictionaryApp.dylib
DYLIB_FILE_SRC = xpcom/src/libIDictionaryApp.dylib
DYLIB_FILE_SRC_SRC = xpcom/src/IDictionaryApp.idl xpcom/src/DictionaryApp.cpp xpcom/src/DictionaryApp.h xpcom/src/DictionaryAppModule.cpp
FILES = install.rdf chrome.manifest chrome/content/config.js chrome/content/config.xul chrome/content/dictionaryfox.js chrome/content/dictionaryfox.xul defaults/preferences/dictionaryfox.js
TARGET = dictionaryfox.xpi
$(TARGET): $(FILES) $(XPT_FILE) $(DYLIB_FILE)
$(ZIP) -r $(TARGET) chrome chrome.manifest components defaults install.rdf
$(XPT_FILE): $(XPT_FILE_SRC)
cp $(XPT_FILE_SRC) $(XPT_FILE)
$(XPT_FILE_SRC): $(XPT_FILE_SRC_SRC)
cd xpcom/src; make
$(DYLIB_FILE): $(DYLIB_FILE_SRC)
cp $(DYLIB_FILE_SRC) $(DYLIB_FILE)
$(DYLIB_FILE_SRC): $(DYLIB_FILE_SRC_SRC)
cd xpcom/src; make
clean:
rm $(TARGET) $(DYLIB_FILE) $(XPT_FILE); cd xpcom/src; make clean