The MinGW.org Installation Manager Tool
リビジョン | 3d84744cfac535aa1fb817faaecdf4da53452c69 (tree) |
---|---|
日時 | 2013-06-15 06:08:52 |
作者 | Keith Marshall <keithmarshall@user...> |
コミッター | Keith Marshall |
Collect distributable package files in user specified directory.
@@ -1,5 +1,15 @@ | ||
1 | 1 | 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 2 | |
3 | + Collect distributable package files in user specified directory. | |
4 | + | |
5 | + * Makefile.in (distdir): New macro; define default as abs_builddir. | |
6 | + (srcdist, bindist, licdist): Use it; direct generated tarballs to it. | |
7 | + (%.txt.dist): New pattern rule; define, and use it to make a copy... | |
8 | + (readme.txt): ...of this, in distdir, when processing... | |
9 | + (dist): ...this build objective. | |
10 | + | |
11 | +2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net> | |
12 | + | |
3 | 13 | Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity. |
4 | 14 | |
5 | 15 | * src/apihook.c: New file; it provides... |
@@ -361,7 +361,17 @@ PACKAGE_DISTVERSION = `echo $(PACKAGE_VERSION)-$(PACKAGE_SUBSYSTEM) | sed \ | ||
361 | 361 | -e 's,-$(PACKAGE_SUBSYSTEM),$(SNAPSHOT)&,'` |
362 | 362 | PACKAGE_DISTNAME = $(PACKAGE_TARNAME)-$(PACKAGE_DISTVERSION) |
363 | 363 | |
364 | -dist: srcdist bindist readme.txt | |
364 | +dist: srcdist bindist readme.txt.dist | |
365 | + | |
366 | +# Specify where distributable files should be collected; by default, | |
367 | +# we will simply use the current build directory. | |
368 | +# | |
369 | +distdir = @abs_builddir@ | |
370 | + | |
371 | +# "Install" distributable text files into the distribution directory. | |
372 | +# | |
373 | +%.txt.dist: %.txt | |
374 | + cmp -s $< ${distdir}/$(<F) 2>/dev/null || $(INSTALL_DATA) $< ${distdir} | |
365 | 375 | |
366 | 376 | # Specify default compression command, and associated file name extension, |
367 | 377 | # for creation and identification of packaged tar archives. |
@@ -379,32 +389,34 @@ GCMTAG = `>> $(BLDTAG); cat $(BLDTAG) | sed 's,.,-$(GUI_RELEASE_CLASS)-&,'` | ||
379 | 389 | |
380 | 390 | bindist: all licdist |
381 | 391 | rm -rf staged |
392 | + $(mkinstalldirs) ${distdir} | |
382 | 393 | $(MAKE) --no-print-directory prefix=`pwd`/staged install-strip |
383 | 394 | cd staged; tar chf - bin/pkginfo$(EXEEXT) | $(TARZIP) -c > \ |
384 | - ../pkginfo-$(PACKAGE_DISTVERSION)$(SCMTAG)-bin.$(TAREXT) | |
395 | + ${distdir}/pkginfo-$(PACKAGE_DISTVERSION)$(SCMTAG)-bin.$(TAREXT) | |
385 | 396 | rm staged/bin/pkginfo$(EXEEXT) |
386 | 397 | cd staged; tar chf - libexec/mingw-get/guimain$(EXEEXT) | \ |
387 | - $(TARZIP) -c > ../$(PACKAGE_DISTNAME)$(GCMTAG)-gui.$(TAREXT) | |
398 | + $(TARZIP) -c > ${distdir}/$(PACKAGE_DISTNAME)$(GCMTAG)-gui.$(TAREXT) | |
388 | 399 | rm staged/libexec/mingw-get/guimain$(EXEEXT) |
389 | 400 | cd staged; tar chf - * | $(TARZIP) -c > \ |
390 | - ../$(PACKAGE_DISTNAME)$(SCMTAG)-bin.$(TAREXT) | |
391 | - cd staged; zip -r ../$(PACKAGE_DISTNAME)$(SCMTAG)-bin.zip * | |
401 | + ${distdir}/$(PACKAGE_DISTNAME)$(SCMTAG)-bin.$(TAREXT) | |
402 | + cd staged; zip -r ${distdir}/$(PACKAGE_DISTNAME)$(SCMTAG)-bin.zip * | |
392 | 403 | rm -rf staged |
393 | 404 | |
394 | 405 | licdist: |
395 | 406 | rm -rf share |
396 | - $(mkinstalldirs) ./share/doc/${PACKAGE_TARNAME} | |
407 | + $(mkinstalldirs) ${distdir} ./share/doc/${PACKAGE_TARNAME} | |
397 | 408 | cd ./share/doc/${PACKAGE_TARNAME}; for file in $(LICENCE_FILES); \ |
398 | 409 | do test -f ${abs_top_srcdir}/$$file \ |
399 | 410 | && $(LN_S) ${abs_top_srcdir}/$$file . \ |
400 | 411 | || $(LN_S) ${CURDIR}/$$file .; \ |
401 | 412 | done |
402 | 413 | tar chf - share | $(TARZIP) -c > \ |
403 | - $(PACKAGE_DISTNAME)$(SCMTAG)-lic.$(TAREXT) | |
414 | + ${distdir}/$(PACKAGE_DISTNAME)$(SCMTAG)-lic.$(TAREXT) | |
404 | 415 | rm -rf share |
405 | 416 | |
406 | 417 | srcdist: srcdist-doc pkginfo.c |
407 | - rm -rf ${PACKAGE_DISTROOT} && mkdir ${PACKAGE_DISTROOT} | |
418 | + rm -rf ${PACKAGE_DISTROOT} | |
419 | + $(mkinstalldirs) ${distdir} ${PACKAGE_DISTROOT} | |
408 | 420 | cd ${PACKAGE_DISTROOT}; for file in $(SRCDIST_FILES); do \ |
409 | 421 | test -f ${abs_top_srcdir}/$$file \ |
410 | 422 | && $(LN_S) ${abs_top_srcdir}/$$file . \ |
@@ -430,7 +442,7 @@ srcdist: srcdist-doc pkginfo.c | ||
430 | 442 | cd ${CURDIR}; done |
431 | 443 | cd ${PACKAGE_DISTROOT}/src/pkginfo; $(LN_S) ${CURDIR}/pkginfo.c . |
432 | 444 | tar chf - ${PACKAGE_DISTROOT} | $(TARZIP) -c > \ |
433 | - $(PACKAGE_DISTNAME)$(SCMTAG)-src.$(TAREXT) | |
445 | + ${distdir}/$(PACKAGE_DISTNAME)$(SCMTAG)-src.$(TAREXT) | |
434 | 446 | rm -rf ${PACKAGE_DISTROOT} |
435 | 447 | |
436 | 448 | # README, INSTALL and NEWS files to be included in the source distribution |