• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Experimental package creation tool for MinGW.org


Commit MetaInfo

Révision4d84c5a501be388ae3c24f89ec6692c407ca9ab1 (tree)
l'heure2019-07-11 19:16:33
AuteurKeith Marshall <keith@user...>
CommiterKeith Marshall

Message de Log

Implement "make" rules to create distributions.

* configure.ac (LN_S): Evaluate it.
* Makefile.in (dist, srcdist, bindist): Add build rules.

Change Summary

Modification

--- a/Makefile.in
+++ b/Makefile.in
@@ -64,6 +64,8 @@ MAKE_SCRIPT = sed -e 's,%PACKAGE%,$(PACKAGE),' -e 's,%VERSION%,$(VERSION),'
6464 # Installation Rules
6565 # ------------------
6666 #
67+install: install-dirs install-scripts install-libexec
68+
6769 INSTALL = @INSTALL@
6870 INSTALL_SCRIPT = @INSTALL_SCRIPT@
6971 INSTALL_DATA = @INSTALL_DATA@
@@ -79,11 +81,9 @@ bindir = @bindir@
7981 # installation directory infrastructure is in place; if not already in
8082 # place, create it ...
8183 #
82-install: install-dirs install-scripts install-libexec
83-install-dirs:
84- for dir in ${bindir} ${libexecdir}/modules ${libexecdir}/plugins; \
85- do $(MKDIR_P) $$dir; \
86- done
84+${bindir} ${libexecdir}/modules ${libexecdir}/plugins:
85+install-dirs: ${bindir} ${libexecdir}/modules ${libexecdir}/plugins
86+ $(MKDIR_P) $^
8787
8888 # ... before installing the entire complement of executable scripts ...
8989 #
@@ -96,5 +96,29 @@ install-libexec: install-libexec-modules install-libexec-plugins
9696 install-libexec-%:
9797 $(INSTALL_DATA) ${srcdir}/src/$*/*.sh ${libexecdir}/$*
9898
99+
100+# Distribution Rules
101+# ------------------
102+#
103+dist: srcdist bindist
104+DISTNAME := $(PACKAGE)-$(VERSION)
105+override RELEASE := $(DISTNAME)$(RELEASE:%=-%)
106+
107+LN_S := @LN_S@
108+
109+srcdist: src
110+srcdist: configure configure.ac Makefile.in install-sh
111+ rm -rf dist/$(DISTNAME)
112+ $(MKDIR_P) dist/$(DISTNAME)
113+ $(LN_S) $(addprefix ${CURDIR}/,$^) dist/$(DISTNAME)
114+ (cd dist; tar chf - $(DISTNAME)) | xz -c > dist/$(RELEASE)-src.tar.xz
115+ rm -rf dist/$(DISTNAME)
116+
117+bindist:
118+ rm -rf dist/staged
119+ $(MAKE) --no-print-directory install prefix=${CURDIR}/dist/staged
120+ (cd dist/staged; tar cf - *) | xz -c > dist/$(RELEASE)-bin.tar.xz
121+ rm -rf dist/staged
122+
99123 # -----------------------------------------------------------------------------
100124 # $RCSfile$: end of file
--- a/configure.ac
+++ b/configure.ac
@@ -4,6 +4,7 @@
44 AC_CONFIG_SRCDIR([src/mingw-pkg.sh])
55 AC_PROG_MKDIR_P
66 AC_PROG_INSTALL
7+ AC_PROG_LN_S
78 AC_CONFIG_FILES([Makefile])
89 AC_OUTPUT
910 #