diff options
author | Olaf Hering <olaf@aepfle.de> | 2010-04-09 13:52:13 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-04-09 13:52:13 -0500 |
commit | 691f7a82fb68ddd17071ddabe68daba0cf0762d4 (patch) | |
tree | 87f88ea718323f0ebb3645d7971cd428adbae2eb | |
parent | 7142b67d8f560a7a65d16cd97d0266e59eae9616 (diff) | |
download | rt-tests-691f7a82fb68ddd17071ddabe68daba0cf0762d4.tar.gz |
skip python dependency in rt-tests make install
If python is not available on the target, skip the
hwlatdetect.py installation with:
make PYLIB= DESTDIR=/some/dir install
Create PYLIB during make install with DESTDIR set
Also, the second bindir should probably be srcdir.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -111,10 +111,13 @@ changelog: .PHONY: install install: all mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man4" - mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man8" + mkdir -p "$(DESTDIR)$(srcdir)" "$(DESTDIR)$(mandir)/man8" cp $(TARGETS) "$(DESTDIR)$(bindir)" - install -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py - ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" + if test -n "$(PYLIB)" ; then \ + mkdir -p "$(DESTDIR)$(PYLIB)" ; \ + install -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ + ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \ + fi mkdir -p "$(DESTDIR)$(srcdir)/backfire" install -m 644 src/backfire/backfire.c "$(DESTDIR)$(srcdir)/backfire/backfire.c" gzip src/backfire/backfire.4 -c >"$(DESTDIR)$(mandir)/man4/backfire.4.gz" |