diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2011-05-04 15:39:16 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2011-05-04 15:39:16 -0500 |
commit | 895dd8394613e2a969589313c0d2894c1fdba00f (patch) | |
tree | bb8d0ef82149e0c65f54cd693851a0950bc21080 | |
parent | f833b0949f39be96ed1f7e3c6b37b091f52491b0 (diff) | |
download | rt-tests-895dd8394613e2a969589313c0d2894c1fdba00f.tar.gz |
Simplify Makefile using -D option to install
install can also create directories with -D
Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r-- | Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -114,12 +114,10 @@ install: all mkdir -p "$(DESTDIR)$(srcdir)" "$(DESTDIR)$(mandir)/man8" cp $(TARGETS) "$(DESTDIR)$(bindir)" if test -n "$(PYLIB)" ; then \ - mkdir -p "$(DESTDIR)$(PYLIB)" ; \ - install -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ + install -D -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" + install -D -m 644 src/backfire/backfire.c "$(DESTDIR)$(srcdir)/backfire/backfire.c" install -m 644 src/backfire/Makefile "$(DESTDIR)$(srcdir)/backfire/Makefile" gzip src/backfire/backfire.4 -c >"$(DESTDIR)$(mandir)/man4/backfire.4.gz" gzip src/cyclictest/cyclictest.8 -c >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz" |