Skip to content

Commit 8a060c2

Browse files
committed
Code review feedback
1 parent b3f7be3 commit 8a060c2

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

utils/rpm.mk

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Common definitions for make an RPM, used by both the Agent and the Server.
1+
# Common definitions for making an RPM, used by both the Agent and the Server.
22
#
33
# Making a pbench component RPM requires a few steps:
44
# 1. Get version number.
@@ -63,17 +63,9 @@ rpm-dirs:
6363
submodules:
6464
git submodule update --init --recursive
6565

66-
# FIXME: Do we still need the sed command to correct for Python3?
67-
# (Previous, only the server was doing it, and only for two files.)
6866
.PHONY: ${subcomps}
6967
${subcomps}:
7068
make -C ${PBENCHTOP}/$@ DESTDIR=${TBDIR}/$@ install
71-
# sed -i '1s;.*python$$;#!/usr/bin/env python3;' ${TBDIR}/$@/bin/*
72-
73-
.PHONY: check
74-
check:
75-
if [ "${version}" == "" ] ;then echo "version undefined" > /dev/stderr; exit 1 ;fi
76-
if [ "${prog}" == "" ] ;then echo "prog undefined" > /dev/stderr ; exit 2 ;fi
7769

7870
$(RPMSRPM)/$(prog)-$(version)-$(seqno)$(sha1).src.rpm: srpm
7971

@@ -83,21 +75,18 @@ else
8375
_copr_user = ${USER}
8476
endif
8577

86-
COPR_TARGETS = copr copr-test copr-interim copr-index copr-inotify copr-dashboard
78+
COPR_TARGETS = copr copr-test
8779
.PHONY: ${COPR_TARGETS}
8880
${COPR_TARGETS}: $(RPMSRPM)/$(prog)-$(version)-$(seqno)$(sha1).src.rpm
8981
copr-cli build $(_copr_user)/$(subst copr,pbench,$@) $(RPMSRPM)/$(prog)-$(VERSION)-$(seqno)g$(sha1).src.rpm
9082

91-
.PHONY: veryclean
92-
veryclean:: clean rpm-clean
83+
.PHONY: distclean
84+
distclean:
85+
rm -rf $(addprefix ${HOME}/rpmbuild/,${RPMDIRS})
9386

9487
.PHONY: clean
9588
clean:: rpm-clean
9689

97-
.PHONY: clean-sha1
98-
clean-sha1:
99-
rm -f ${upstmtree}/${prog}.SHA1
100-
10190
.PHONY: rpm-clean
10291
rpm-clean:
103-
rm -rf $(addprefix ${HOME}/rpmbuild/,${RPMDIRS})
92+
rm -rf $(foreach dir,${RPMDIRS},${HOME}/rpmbuild/${dir}/*)

0 commit comments

Comments
 (0)