From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/R_overlay:master commit in: /
Date: Tue, 1 Apr 2014 16:38:49 +0000 (UTC) [thread overview]
Message-ID: <1396370196.fd098efcebdad3a92d40bcd00278d7011bd31404.dywi@gentoo> (raw)
commit: fd098efcebdad3a92d40bcd00278d7011bd31404
Author: André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Mon Mar 31 17:31:49 2014 +0000
Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Tue Apr 1 16:36:36 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=fd098efc
Makefile: parallel generate-config
---
Makefile | 81 ++++++++++++++++++++++++++++++++++++++++++++++------------------
1 file changed, 58 insertions(+), 23 deletions(-)
diff --git a/Makefile b/Makefile
index 5f5ac2c..9a41011 100644
--- a/Makefile
+++ b/Makefile
@@ -37,43 +37,36 @@ SRC_DOCDIR := ./doc
SELFDOC := $(SRC_DOCDIR)/pydoc
-.PHONY: default \
- clean clean-log _pyclean _pydoc_clean distclean \
- docs pydoc htmldoc \
- check test \
- generate-files \
- generate-config generate-doc generate-manifest \
- release dist \
- compress-config \
- install-all install \
- install-roverlay install-pymodules \
- install-data install-config-common \
- install-config-compressed install-config \
- uninstall-all uninstall \
- uninstall-roverlay uninstall-pymodules
-
+PHONY += default
default:
@false
+PHONY += check
check:
@true
+PHONY += test
test: ./bin/run_tests
./bin/run_tests
+PHONY += clean
clean:
rm -rf ./build/ $(BUILDDIR)/
+PHONY += clean-log
clean-log:
rm -rf -- $(LOGDIR)
+PHONY += _pyclean
_pyclean:
find . \( -name "*.pyc" -or -name "*.pyo" \) -delete -print
+PHONY += _pydoc_clean
_pydoc_clean:
rm -f -- $(SELFDOC)/*.html
! test -d $(SELFDOC) || rmdir --ignore-fail-on-non-empty -- $(SELFDOC)/
+PHONY += distclean
distclean: clean _pyclean _pydoc_clean
$(BUILDDIR):
@@ -86,60 +79,89 @@ $(SELFDOC):
$(PYDOC_SH) $(SELFDOC)
# alias to $(SELFDOC)
+PHONY += pydoc
pydoc: $(SELFDOC)
+PHONY += htmldoc
htmldoc: $(SRC_DOCDIR)/rst/usage.rst
@install -d $(SRC_DOCDIR)/html
$(RST_HTML) $(SRC_DOCDIR)/rst/usage.rst $(SRC_DOCDIR)/html/usage.html
+PHONY += generate-doc
generate-doc: htmldoc
+PHONY += generate-manifest
generate-manifest: $(MANIFEST_GEN)
$(MANIFEST_GEN) > $(MANIFEST_TMP)
mv -- $(MANIFEST_TMP) $(MANIFEST)
-generate-config: $(RV_SETUP)
- ROVERLAY_INSTALLED=1 $(RV_SETUP) \
- -O config/R-overlay.conf.install \
+
+$(CURDIR)/config/R-overlay.conf.install: $(RV_SETUP) FORCE | $(CURDIR)/config
+ ROVERLAY_INSTALLED=1 $< --target-type gentoo \
+ -O $@ \
-D $(DATADIR)/roverlay \
--conf-root $(CONFDIR)/roverlay --my-conf-root $(CONFDIR)/roverlay \
-A $(CONFDIR)/roverlay/files \
mkconfig
- ROVERLAY_INSTALLED=0 $(RV_SETUP) \
- -O R-overlay.conf --prjroot-relpath \
+$(CURDIR)/config/R-overlay.conf.install.others: $(RV_SETUP) FORCE | $(CURDIR)/config
+ ROVERLAY_INSTALLED=1 $< --target-type foreign \
+ -O $@ \
+ -D $(DATADIR)/roverlay \
+ --conf-root $(CONFDIR)/roverlay --my-conf-root $(CONFDIR)/roverlay \
+ -A $(CONFDIR)/roverlay/files \
+ mkconfig
+
+$(CURDIR)/R-overlay.conf: $(RV_SETUP) FORCE
+ ROVERLAY_INSTALLED=0 $< --target-type gentoo \
+ -O $@ --prjroot-relpath \
-D files --conf-root config --my-conf-root config -A files -W workdir \
mkconfig
- ROVERLAY_INSTALLED=0 $(RV_SETUP) \
- -O R-overlay.conf.others --prjroot-relpath --target-type foreign \
+$(CURDIR)/R-overlay.conf.others: $(RV_SETUP) FORCE
+ ROVERLAY_INSTALLED=0 $< --target-type foreign \
+ -O $@ --prjroot-relpath \
-D files --conf-root config --my-conf-root config -A files -W workdir \
mkconfig
+PHONY += generate-config
+generate-config: \
+ $(CURDIR)/config/R-overlay.conf.install \
+ $(CURDIR)/config/R-overlay.conf.install.others \
+ $(CURDIR)/R-overlay.conf \
+ $(CURDIR)/R-overlay.conf.others
+
+PHONY += generate-files
generate-files: generate-config generate-doc generate-manifest
# creates a src tarball (.tar.bz2)
# !!! does not include config files
+PHONY += release
release: generate-files
@echo "Note: the release tarball does not include any config files!"
@install -d $(PKG_DISTDIR)
./$(SETUP_PY) sdist --dist-dir=$(PKG_DISTDIR) --formats=bztar
+PHONY += dist
dist: distclean release
+PHONY += compress-config
compress-config: $(BUILDDIR)
@install -d $(BUILDDIR)/config
cp -vLr -p --no-preserve=ownership config/simple-deprules.d $(BUILDDIR)/config/
find $(BUILDDIR)/config/simple-deprules.d/ -type f -print0 | xargs -0 -n 5 --verbose $(X_COMPRESS)
$(X_COMPRESS) -c config/license.map > $(BUILDDIR)/config/license.map
+PHONY += install-roverlay
install-roverlay: ./roverlay.py
install -T -D -- ./roverlay.py $(BINDIR)/roverlay
+PHONY += install-pymodules
install-pymodules: ./setup.py
$(PYTHON) ./setup.py install --record $(PYMOD_FILE_LIST)
+PHONY += install-config-common
install-config-common:
install -m 0755 -d $(CONFDIR)/roverlay
install -m 0644 -t $(CONFDIR)/roverlay \
@@ -148,11 +170,13 @@ install-config-common:
install -m 0644 -T \
config/R-overlay.conf.install $(CONFDIR)/roverlay/R-overlay.conf
+PHONY += install-config-compressed
install-config-compressed: install-config-common
cp -vLr -p --no-preserve=ownership \
$(BUILDDIR)/config/simple-deprules.d $(BUILDDIR)/config/license.map \
$(CONFDIR)/roverlay/
+PHONY += install-config
install-config: install-config-common
cp -vLr -p --no-preserve=ownership \
config/simple-deprules.d config/license.map \
@@ -160,7 +184,7 @@ install-config: install-config-common
# license.map deprules
-
+PHONY += install-data
install-data:
install -m 0755 -d \
$(DATADIR)/roverlay/shlib $(DATADIR)/roverlay/hooks \
@@ -175,17 +199,28 @@ install-data:
install -m 0644 -t $(DATADIR)/roverlay/mako_templates \
files/mako_templates/*.*
+PHONY += install
install: install-pymodules install-roverlay
+PHONY += install-all
install-all: install
+PHONY += uninstall-roverlay
uninstall-roverlay:
rm -vf -- $(BINDIR)/roverlay
+PHONY += uninstall-pymodules
uninstall-pymodules: $(PYMOD_FILE_LIST)
xargs rm -vrf < $(PYMOD_FILE_LIST)
+PHONY += uninstall
uinstall:
@false
+PHONY += uninstall-all
uninstall-all: uninstall
+
+PHONY += FORCE
+FORCE:
+
+.PHONY: $(PHONY)
next reply other threads:[~2014-04-01 16:39 UTC|newest]
Thread overview: 146+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-01 16:38 André Erdmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-11-24 10:41 [gentoo-commits] proj/R_overlay:master commit in: / Benda XU
2015-11-05 5:15 Benda XU
2015-01-26 17:41 André Erdmann
2014-07-16 15:14 André Erdmann
2014-06-05 22:09 André Erdmann
2014-06-05 22:09 André Erdmann
2014-06-05 22:09 André Erdmann
2014-06-05 22:09 André Erdmann
2014-06-05 22:09 André Erdmann
2014-06-05 22:09 André Erdmann
2014-06-05 22:09 André Erdmann
2014-06-05 22:09 André Erdmann
2014-06-05 22:09 André Erdmann
2014-04-01 16:38 André Erdmann
2014-02-22 14:56 André Erdmann
2014-02-22 14:56 André Erdmann
2014-02-21 18:15 André Erdmann
2014-02-16 3:44 Benda XU
2014-01-25 18:14 André Erdmann
2013-12-11 18:40 André Erdmann
2013-09-23 15:30 André Erdmann
2013-09-23 15:30 André Erdmann
2013-09-23 15:30 André Erdmann
2013-09-23 15:30 André Erdmann
2013-09-18 14:00 André Erdmann
2013-09-18 14:00 André Erdmann
2013-09-16 8:56 André Erdmann
2013-09-13 15:10 André Erdmann
2013-09-12 16:36 André Erdmann
2013-09-12 8:27 André Erdmann
2013-09-12 8:27 André Erdmann
2013-09-11 14:59 André Erdmann
2013-09-11 14:59 André Erdmann
2013-09-11 10:27 André Erdmann
2013-09-11 10:19 André Erdmann
2013-09-11 10:19 André Erdmann
2013-09-04 15:36 André Erdmann
2013-08-29 15:22 André Erdmann
2013-08-16 10:58 André Erdmann
2013-08-16 10:57 André Erdmann
2013-08-16 10:53 André Erdmann
2013-08-16 10:43 André Erdmann
2013-08-16 10:43 André Erdmann
2013-08-14 14:56 André Erdmann
2013-08-14 14:56 André Erdmann
2013-08-12 8:18 André Erdmann
2013-08-09 10:18 André Erdmann
2013-08-05 11:44 André Erdmann
2013-08-01 12:44 André Erdmann
2013-08-01 12:44 André Erdmann
2013-07-25 13:25 André Erdmann
2013-07-23 18:34 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-23 18:34 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-07-23 14:57 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-23 14:57 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-07-12 17:11 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-12 17:11 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-07-12 14:03 André Erdmann
2013-07-11 16:44 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-11 16:29 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-07-11 10:36 André Erdmann
2013-07-10 16:16 André Erdmann
2013-07-10 16:16 André Erdmann
2013-07-10 15:10 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-10 16:16 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-07-03 10:05 André Erdmann
2013-06-22 15:24 André Erdmann
2013-06-22 15:24 André Erdmann
2013-02-09 21:23 André Erdmann
2013-02-09 20:45 André Erdmann
2013-02-03 19:32 André Erdmann
2013-01-28 23:56 André Erdmann
2013-01-27 16:51 Denis Dupeyron
2013-01-25 23:27 Denis Dupeyron
2013-01-25 17:44 Denis Dupeyron
2013-01-09 19:15 André Erdmann
2012-08-20 10:39 André Erdmann
2012-08-20 10:39 André Erdmann
2012-08-17 17:26 André Erdmann
2012-08-10 15:16 André Erdmann
2012-08-10 15:16 André Erdmann
2012-08-10 15:16 André Erdmann
2012-08-10 15:16 André Erdmann
2012-08-08 23:46 André Erdmann
2012-08-08 23:46 André Erdmann
2012-08-07 8:50 André Erdmann
2012-08-06 19:01 André Erdmann
2012-08-03 15:04 André Erdmann
2012-08-03 15:04 André Erdmann
2012-08-03 15:04 André Erdmann
2012-08-03 15:04 André Erdmann
2012-08-03 13:59 André Erdmann
2012-08-03 13:38 André Erdmann
2012-08-03 13:38 André Erdmann
2012-08-01 21:10 André Erdmann
2012-08-01 7:38 André Erdmann
2012-07-30 15:53 André Erdmann
2012-07-30 15:53 André Erdmann
2012-07-16 16:15 André Erdmann
2012-07-11 18:43 André Erdmann
2012-07-11 18:43 André Erdmann
2012-07-10 18:03 André Erdmann
2012-07-09 17:19 André Erdmann
2012-07-09 17:19 André Erdmann
2012-07-09 17:19 André Erdmann
2012-07-09 17:19 André Erdmann
2012-07-06 22:19 André Erdmann
2012-07-06 22:19 André Erdmann
2012-07-06 8:15 André Erdmann
2012-07-05 16:01 André Erdmann
2012-07-05 16:00 André Erdmann
2012-07-04 18:21 André Erdmann
2012-07-04 18:21 André Erdmann
2012-07-04 18:21 André Erdmann
2012-07-03 17:48 André Erdmann
2012-07-03 17:48 André Erdmann
2012-06-29 22:48 André Erdmann
2012-06-29 22:48 André Erdmann
2012-06-27 14:46 André Erdmann
2012-06-27 14:46 André Erdmann
2012-06-26 15:42 André Erdmann
2012-06-26 15:42 André Erdmann
2012-06-25 18:19 André Erdmann
2012-06-22 18:13 André Erdmann
2012-06-22 18:13 André Erdmann
2012-06-22 18:13 André Erdmann
2012-06-21 16:55 André Erdmann
2012-06-20 19:03 André Erdmann
2012-06-20 19:03 André Erdmann
2012-06-15 20:34 André Erdmann
2012-06-15 20:34 André Erdmann
2012-06-15 20:34 André Erdmann
2012-06-15 20:34 André Erdmann
2012-06-13 16:34 André Erdmann
2012-06-13 16:34 André Erdmann
2012-06-12 17:17 André Erdmann
2012-06-11 18:31 André Erdmann
2012-06-11 18:31 André Erdmann
2012-06-11 18:31 André Erdmann
2012-06-08 17:48 André Erdmann
2012-06-06 19:52 André Erdmann
2012-06-06 19:52 André Erdmann
2012-06-06 19:52 André Erdmann
2012-06-01 15:46 André Erdmann
2012-06-01 15:46 André Erdmann
2012-05-31 18:24 André Erdmann
2012-05-31 18:24 André Erdmann
2012-05-30 19:36 André Erdmann
2012-05-30 16:09 André Erdmann
2012-05-30 10:58 André Erdmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1396370196.fd098efcebdad3a92d40bcd00278d7011bd31404.dywi@gentoo \
--to=dywi@mailerd.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox