Windows DLL exported symbols listing utility
Révision | 06429d0f083c146cf13a46327668746635900590 (tree) |
---|---|
l'heure | 2013-05-31 05:07:47 |
Auteur | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Assemble licence and documentation tarballs for distribution.
@@ -1,3 +1,12 @@ | ||
1 | +2013-05-30 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Assemble licence and documentation tarballs for distribution. | |
4 | + | |
5 | + * Makefile.in (dist): Add dependencies on... | |
6 | + (licdist, docdist): ...these new build goals; specify them based on... | |
7 | + (LIC_DISTFILES, DOC_DISTFILES): ...these new macros; define them as | |
8 | + the respective list of files to include in each tarball. | |
9 | + | |
1 | 10 | 2013-05-29 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 11 | |
3 | 12 | Force a remake, on package version updates. |
@@ -63,6 +63,14 @@ AUX_DISTFILES = \ | ||
63 | 63 | # |
64 | 64 | BIN_DISTFILES = pexports$(EXEEXT) |
65 | 65 | |
66 | +# Files to be included in a documentation tarball. | |
67 | +# | |
68 | +DOC_DISTFILES = README ChangeLog | |
69 | + | |
70 | +# Files to be included in a licence tarball. | |
71 | +# | |
72 | +LIC_DISTFILES = COPYING | |
73 | + | |
66 | 74 | OBJECT_FILES = \ |
67 | 75 | hlex.$(OBJEXT) hparse.$(OBJEXT) pexports.$(OBJEXT) str_tree.$(OBJEXT) |
68 | 76 |
@@ -119,7 +127,7 @@ uninstall: | ||
119 | 127 | |
120 | 128 | # Distribution. |
121 | 129 | # |
122 | -dist: srcdist bindist | |
130 | +dist: srcdist bindist docdist licdist | |
123 | 131 | |
124 | 132 | abs_top_srcdir = @abs_top_srcdir@ |
125 | 133 |
@@ -149,6 +157,26 @@ bindist: $(BIN_DISTFILES) | ||
149 | 157 | cd tmp && tar -chof - bin | xz > ../$(PACKAGE_DISTNAME)-bin.tar.xz |
150 | 158 | $(RM) -r tmp |
151 | 159 | |
160 | +docdist: | |
161 | + $(RM) -r tmp | |
162 | + $(MKDIR_P) tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) | |
163 | + cd tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) && \ | |
164 | + for file in $(DOC_DISTFILES); \ | |
165 | + do $(LN_S) ${abs_top_srcdir}/$$file .; \ | |
166 | + done | |
167 | + cd tmp && tar -chof - share | xz > ../$(PACKAGE_DISTNAME)-doc.tar.xz | |
168 | + $(RM) -r tmp | |
169 | + | |
170 | +licdist: | |
171 | + $(RM) -r tmp | |
172 | + $(MKDIR_P) tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) | |
173 | + cd tmp/share/doc/$(PACKAGE_TARNAME)/$(PACKAGE_VERSION) && \ | |
174 | + for file in $(LIC_DISTFILES); \ | |
175 | + do $(LN_S) ${abs_top_srcdir}/$$file .; \ | |
176 | + done | |
177 | + cd tmp && tar -chof - share | xz > ../$(PACKAGE_DISTNAME)-lic.tar.xz | |
178 | + $(RM) -r tmp | |
179 | + | |
152 | 180 | # Clean-up. |
153 | 181 | # |
154 | 182 | mostlyclean clean: |