~snowball-yiddish-dev/snowball-yiddish/trunk

« back to all changes in this revision

Viewing changes to snowball/GNUmakefile

  • Committer: richard
  • Date: 2004-08-29 11:32:25 UTC
  • Revision ID: svn-v4:633ccae0-01f4-0310-8c99-d3591da6f01f:trunk:260
Add make dist target, which generates a tarball containing all the snowball
sources, and also the tarball of the C libstemmer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
STEMWORDS_SOURCES = examples/stemwords.c
42
42
 
 
43
ALGORITHMS = $(languages:%=algorithms/%/stem.sbl)
43
44
C_SOURCES = $(languages:%=$(c_src_dir)/stem_%.c)
44
45
C_HEADERS = $(languages:%=$(c_src_dir)/stem_%.h)
45
46
 
91
92
        splint $^ >$@ -weak
92
93
 
93
94
# Make a full source distribution
94
 
dist:
95
 
        @echo "UNIMPLEMENTED"
 
95
dist: dist_snowball dist_libstemmer_c
 
96
 
 
97
# Make a distribution of all the sources involved in snowball
 
98
dist_snowball: $(COMPILER_SOURCES) $(COMPILER_HEADERS) \
 
99
            $(RUNTIME_SOURCES) $(RUNTIME_HEADERS) \
 
100
            $(LIBSTEMMER_SOURCES) $(LIBSTEMMER_HEADERS) \
 
101
            $(ALGORITHMS) $(STEMWORDS_SOURCES) \
 
102
            GNUmakefile README doc/TODO libstemmer/mkmodules.pl
 
103
        destname=snowball; \
 
104
        dest=dist/$${destname}; \
 
105
        rm -rf $${dest} && \
 
106
        rm -f $${dest}.tgz && \
 
107
        for file in $^; do \
 
108
          dir=`dirname $$file` && \
 
109
          mkdir -p $${dest}/$${dir} && \
 
110
          cp $${file} $${dest}/$${dir} || exit 1 ; \
 
111
        done && \
 
112
        (cd dist && tar zcf $${destname}.tgz $${destname}) && \
 
113
        rm -rf $${dest}
96
114
 
97
115
# Make a distribution of all the sources required to compile the C library.
98
 
c-src-dist: $(RUNTIME_SOURCES) $(RUNTIME_HEADERS) \
 
116
dist_libstemmer_c: $(RUNTIME_SOURCES) $(RUNTIME_HEADERS) \
99
117
            $(LIBSTEMMER_SOURCES) $(LIBSTEMMER_HEADERS) \
100
118
            $(C_SOURCES) $(C_HEADERS)
101
 
        destname=snowball_c_src; \
 
119
        destname=libstemmer_c; \
102
120
        dest=dist/$${destname}; \
103
121
        rm -rf $${dest} && \
104
122
        rm -f $${dest}.tgz && \