/[classpath]/classpath/examples/Makefile.am
ViewVC logotype

Diff of /classpath/examples/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mark, Tue Jul 26 07:12:29 2005 UTC revision 1.6 by mark, Mon Sep 5 08:31:03 2005 UTC
# Line 22  endif Line 22  endif
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    
# Line 31  BUILT_SOURCES = $(EXAMPLE_ZIP) Line 34  BUILT_SOURCES = $(EXAMPLE_ZIP)
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    
# Line 41  exampledir = $(pkgdatadir)/examples Line 47  exampledir = $(pkgdatadir)/examples
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 \
# Line 51  install-data-local: Line 57  install-data-local:
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 \

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26