@@ -122,7 +122,7 @@ $(OBJDIR)/%.d: %.c | $(OBJDIR)
@$(CC) -MM $(CFLAGS) $(CPPFLAGS) $< | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' > $@ || rm -f $@
.PHONY: all
-all: $(TARGETS) hwlatdetect | $(OBJDIR)
+all: $(TARGETS) hwlatdetect get_cyclictest_snapshot | $(OBJDIR)
$(OBJDIR):
mkdir $(OBJDIR)
@@ -149,6 +149,10 @@ hwlatdetect: src/hwlatdetect/hwlatdetect.py
chmod +x src/hwlatdetect/hwlatdetect.py
ln -s src/hwlatdetect/hwlatdetect.py hwlatdetect
+get_cyclictest_snapshot: src/cyclictest/get_cyclictest_snapshot.py
+ chmod +x src/cyclictest/get_cyclictest_snapshot.py
+ ln -s src/cyclictest/get_cyclictest_snapshot.py get_cyclictest_snapshot
+
rt-migrate-test: $(OBJDIR)/rt-migrate-test.o $(OBJDIR)/librttest.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB)
@@ -194,6 +198,7 @@ clean:
for F in $(CLEANUP); do find -type f -name $$F | xargs rm -f; done
rm -f rt-tests-*.tar
rm -f hwlatdetect
+ rm -f get_cyclictest_snapshot
rm -f tags
RPMDIRS = BUILD BUILDROOT RPMS SRPMS SPECS
@@ -207,7 +212,7 @@ rebuild:
$(MAKE) all
.PHONY: install
-install: all install_manpages install_hwlatdetect
+install: all install_manpages install_hwlatdetect install_get_cyclictest_snapshot
mkdir -p "$(DESTDIR)$(bindir)"
cp $(TARGETS) "$(DESTDIR)$(bindir)"
install src/queuelat/get_cpuinfo_mhz.sh "$(DESTDIR)$(bindir)"
@@ -222,6 +227,15 @@ install_hwlatdetect: hwlatdetect
ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \
fi
+.PHONY: install_get_cyclictest_snapshot
+install_get_cyclictest_snapshot: get_cyclictest_snapshot
+ if test -n "${PYLIB}" ; then \
+ mkdir -p "${DESTDIR}${bindir}" ; \
+ install -D -m 755 src/cyclictest/get_cyclictest_snapshot.py ${DESTDIR}${PYLIB}/get_cyclictest_snapshot.py ; \
+ rm -f "${DESTDIR}${bindir}/get_cyclictest_snapshot" ; \
+ ln -s ${PYLIB}/get_cyclictest_snapshot.py "${DESTDIR}${bindir}/get_cyclictest_snapshot" ; \
+ fi
+
.PHONY: install_manpages
install_manpages: $(MANPAGES)
mkdir -p "$(DESTDIR)$(mandir)/man8"
Add get_cyclictest_snapshot to Makefile Signed-off-by: John Kacur <jkacur@redhat.com> --- Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-)