1 | # |
---|
2 | # The contents of this file are subject to the Netscape Public |
---|
3 | # License Version 1.1 (the "License"); you may not use this file |
---|
4 | # except in compliance with the License. You may obtain a copy of |
---|
5 | # the License at http://www.mozilla.org/NPL/ |
---|
6 | # |
---|
7 | # Software distributed under the License is distributed on an "AS |
---|
8 | # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
---|
9 | # implied. See the License for the specific language governing |
---|
10 | # rights and limitations under the License. |
---|
11 | # |
---|
12 | # The Original Code is mozilla.org code. |
---|
13 | # |
---|
14 | # The Initial Developer of the Original Code is Netscape |
---|
15 | # Communications Corporation. Portions created by Netscape are |
---|
16 | # Copyright (C) 1998 Netscape Communications Corporation. All |
---|
17 | # Rights Reserved. |
---|
18 | # |
---|
19 | # Contributor(s): |
---|
20 | # |
---|
21 | |
---|
22 | DEPTH = .. |
---|
23 | topsrcdir = @top_srcdir@ |
---|
24 | srcdir = @srcdir@ |
---|
25 | VPATH = @srcdir@ |
---|
26 | |
---|
27 | include $(DEPTH)/config/autoconf.mk |
---|
28 | |
---|
29 | DIRS = public |
---|
30 | |
---|
31 | ifdef ENABLE_TESTS |
---|
32 | DIRS += tests |
---|
33 | endif |
---|
34 | |
---|
35 | # XXX Export the viewer samples from here |
---|
36 | # XXX so that we have them in our release builds. |
---|
37 | # XXX move these back to tests/viewer when we stop shipping with debug menus |
---|
38 | # |
---|
39 | |
---|
40 | EXPORT_RESOURCE_SAMPLES := \ |
---|
41 | $(wildcard $(srcdir)/tests/viewer/samples/test*.html) \ |
---|
42 | $(wildcard $(srcdir)/tests/viewer/samples/toolbarTest*.xul) \ |
---|
43 | $(wildcard $(srcdir)/tests/viewer/samples/treeTest*.xul) \ |
---|
44 | $(wildcard $(srcdir)/tests/viewer/samples/treeTest*.css) \ |
---|
45 | $(wildcard $(srcdir)/tests/viewer/samples/slider*.xul) \ |
---|
46 | $(wildcard $(srcdir)/tests/viewer/samples/scrollbar*.xul) \ |
---|
47 | $(srcdir)/tests/viewer/resources/find.html \ |
---|
48 | $(srcdir)/tests/viewer/resources/printsetup.html \ |
---|
49 | $(srcdir)/tests/viewer/resources/image_props.html \ |
---|
50 | $(srcdir)/tests/viewer/samples/aform.css \ |
---|
51 | $(srcdir)/tests/viewer/samples/bform.css \ |
---|
52 | $(srcdir)/tests/viewer/samples/cform.css \ |
---|
53 | $(srcdir)/tests/viewer/samples/demoform.css \ |
---|
54 | $(srcdir)/tests/viewer/samples/mozform.css \ |
---|
55 | $(srcdir)/tests/viewer/samples/xulTest.css \ |
---|
56 | $(srcdir)/tests/viewer/samples/Anieyes.gif \ |
---|
57 | $(srcdir)/tests/viewer/samples/gear1.gif \ |
---|
58 | $(srcdir)/tests/viewer/samples/rock_gra.gif \ |
---|
59 | $(srcdir)/tests/viewer/samples/beeptest.html \ |
---|
60 | $(srcdir)/tests/viewer/samples/soundtest.html \ |
---|
61 | $(srcdir)/tests/viewer/samples/bg.jpg \ |
---|
62 | $(srcdir)/tests/viewer/samples/raptor.jpg \ |
---|
63 | $(srcdir)/tests/viewer/samples/test.wav \ |
---|
64 | $(srcdir)/tests/viewer/samples/checkboxTest.xul \ |
---|
65 | $(NULL) |
---|
66 | |
---|
67 | EXPORT_RESOURCE_THROBBER := $(wildcard $(srcdir)/tests/viewer/throbber/anim*.gif) |
---|
68 | |
---|
69 | |
---|
70 | include $(topsrcdir)/config/rules.mk |
---|
71 | |
---|
72 | libs:: |
---|
73 | $(INSTALL) $(EXPORT_RESOURCE_SAMPLES) $(DIST)/bin/res/samples |
---|
74 | $(INSTALL) $(EXPORT_RESOURCE_THROBBER) $(DIST)/bin/res/throbber |
---|
75 | $(INSTALL) $(srcdir)/tests/viewer/resources/viewer.properties $(DIST)/bin/res |
---|
76 | |
---|
77 | install:: |
---|
78 | $(SYSINSTALL) $(IFLAGS1) $(EXPORT_RESOURCE_SAMPLES) $(DESTDIR)$(mozappdir)/res/samples |
---|
79 | $(SYSINSTALL) $(IFLAGS1) $(EXPORT_RESOURCE_THROBBER) $(DESTDIR)$(mozappdir)/res/throbber |
---|
80 | $(SYSINSTALL) $(IFLAGS1) $(srcdir)/tests/viewer/resources/viewer.properties $(DESTDIR)$(mozappdir)/res |
---|
81 | |
---|