22 |
# All our example java source files |
# All our example java source files |
23 |
EXAMPLE_JAVA_FILES = $(srcdir)/gnu/classpath/examples/*/*.java |
EXAMPLE_JAVA_FILES = $(srcdir)/gnu/classpath/examples/*/*.java |
24 |
|
|
25 |
|
# The example C source files |
26 |
|
EXAMPLE_C_FILES = $(srcdir)/gnu/classpath/examples/*/*.c |
27 |
|
|
28 |
# The zip files with classes we want to produce. |
# The zip files with classes we want to produce. |
29 |
EXAMPLE_ZIP = examples.zip |
EXAMPLE_ZIP = examples.zip |
30 |
|
|
34 |
# the png icons we use in some of the examples. |
# the png icons we use in some of the examples. |
35 |
EXAMPLE_ICONS = $(srcdir)/gnu/classpath/examples/icons/*.png |
EXAMPLE_ICONS = $(srcdir)/gnu/classpath/examples/icons/*.png |
36 |
|
|
37 |
|
# All the files we find "interesting" |
38 |
|
ALL_EXAMPLE_FILES = $(EXAMPLE_JAVA_FILES) $(EXAMPLE_C_FILES) $(EXAMPLE_ICONS) |
39 |
|
|
40 |
# Some architecture independent data to be installed. |
# Some architecture independent data to be installed. |
41 |
example_DATA = $(EXAMPLE_ZIP) README |
example_DATA = $(EXAMPLE_ZIP) README |
42 |
|
|
47 |
# (Be careful to strip off the srcdir part of the path when installing.) |
# (Be careful to strip off the srcdir part of the path when installing.) |
48 |
install-data-local: |
install-data-local: |
49 |
srcdir_cnt=`echo $(srcdir) | wc -c`; \ |
srcdir_cnt=`echo $(srcdir) | wc -c`; \ |
50 |
for file in $(EXAMPLE_JAVA_FILES) $(EXAMPLE_ICONS); do \ |
for file in $(ALL_EXAMPLE_FILES); do \ |
51 |
f=`echo $$file | cut -c$$srcdir_cnt-`; \ |
f=`echo $$file | cut -c$$srcdir_cnt-`; \ |
52 |
fdir=`dirname $$f`; \ |
fdir=`dirname $$f`; \ |
53 |
if test ! -d $(DESTDIR)/$(pkgdatadir)/examples/$$fdir; then \ |
if test ! -d $(DESTDIR)/$(pkgdatadir)/examples/$$fdir; then \ |
57 |
echo "$(INSTALL_DATA) $$file $(DESTDIR)/$(pkgdatadir)/examples/$$f"; \ |
echo "$(INSTALL_DATA) $$file $(DESTDIR)/$(pkgdatadir)/examples/$$f"; \ |
58 |
$(INSTALL_DATA) $$file $(DESTDIR)/$(pkgdatadir)/examples/$$f; \ |
$(INSTALL_DATA) $$file $(DESTDIR)/$(pkgdatadir)/examples/$$f; \ |
59 |
done |
done |
60 |
|
echo "$(INSTALL_DATA) Makefile.jawt $(DESTDIR)/$(pkgdatadir)/examples/" |
61 |
|
$(INSTALL_DATA) Makefile.jawt $(DESTDIR)/$(pkgdatadir)/examples/ |
62 |
|
|
63 |
uninstall-local: |
uninstall-local: |
64 |
srcdir_cnt=`echo $(srcdir) | wc -c`; \ |
srcdir_cnt=`echo $(srcdir) | wc -c`; \ |
65 |
for file in $(EXAMPLE_JAVA_FILES) $(EXAMPLE_ICONS); do \ |
for file in $(ALL_EXAMPLE_FILES); do \ |
66 |
f=`echo $$file | cut -c$$srcdir_cnt-`; \ |
f=`echo $$file | cut -c$$srcdir_cnt-`; \ |
67 |
echo "rm -f $(DESTDIR)/$(pkgdatadir)/examples/$$f"; \ |
echo "rm -f $(DESTDIR)/$(pkgdatadir)/examples/$$f"; \ |
68 |
rm -f $(DESTDIR)/$(pkgdatadir)/examples/$$f; \ |
rm -f $(DESTDIR)/$(pkgdatadir)/examples/$$f; \ |
69 |
done |
done |
70 |
|
echo "rm -f $(DESTDIR)/$(pkgdatadir)/examples/Makefile.jawt" |
71 |
|
rm -f $(DESTDIR)/$(pkgdatadir)/examples/Makefile.jawt |
72 |
|
|
73 |
# Make sure everything is included in the distribution. |
# Make sure everything is included in the distribution. |
74 |
EXTRA_DIST = README |
EXTRA_DIST = README Makefile.jawt.in |
75 |
dist-hook: |
dist-hook: |
76 |
srcdir_cnt=`echo $(srcdir) | wc -c`; \ |
srcdir_cnt=`echo $(srcdir) | wc -c`; \ |
77 |
for file in $(EXAMPLE_JAVA_FILES) $(EXAMPLE_ICONS); do \ |
for file in $(ALL_EXAMPLE_FILES); do \ |
78 |
f=`echo $$file | cut -c$$srcdir_cnt-`; \ |
f=`echo $$file | cut -c$$srcdir_cnt-`; \ |
79 |
fdir=`dirname $$f`; \ |
fdir=`dirname $$f`; \ |
80 |
if test ! -d $(distdir)/$$fdir; then \ |
if test ! -d $(distdir)/$$fdir; then \ |