|
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. |
2 | 2 | # |
3 | 3 | # Making a pbench component RPM requires a few steps: |
4 | 4 | # 1. Get version number. |
@@ -63,17 +63,9 @@ rpm-dirs: |
63 | 63 | submodules: |
64 | 64 | git submodule update --init --recursive |
65 | 65 |
|
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.) |
68 | 66 | .PHONY: ${subcomps} |
69 | 67 | ${subcomps}: |
70 | 68 | 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 |
77 | 69 |
|
78 | 70 | $(RPMSRPM)/$(prog)-$(version)-$(seqno)$(sha1).src.rpm: srpm |
79 | 71 |
|
|
83 | 75 | _copr_user = ${USER} |
84 | 76 | endif |
85 | 77 |
|
86 | | -COPR_TARGETS = copr copr-test copr-interim copr-index copr-inotify copr-dashboard |
| 78 | +COPR_TARGETS = copr copr-test |
87 | 79 | .PHONY: ${COPR_TARGETS} |
88 | 80 | ${COPR_TARGETS}: $(RPMSRPM)/$(prog)-$(version)-$(seqno)$(sha1).src.rpm |
89 | 81 | copr-cli build $(_copr_user)/$(subst copr,pbench,$@) $(RPMSRPM)/$(prog)-$(VERSION)-$(seqno)g$(sha1).src.rpm |
90 | 82 |
|
91 | | -.PHONY: veryclean |
92 | | -veryclean:: clean rpm-clean |
| 83 | +.PHONY: distclean |
| 84 | +distclean: |
| 85 | + rm -rf $(addprefix ${HOME}/rpmbuild/,${RPMDIRS}) |
93 | 86 |
|
94 | 87 | .PHONY: clean |
95 | 88 | clean:: rpm-clean |
96 | 89 |
|
97 | | -.PHONY: clean-sha1 |
98 | | -clean-sha1: |
99 | | - rm -f ${upstmtree}/${prog}.SHA1 |
100 | | - |
101 | 90 | .PHONY: rpm-clean |
102 | 91 | rpm-clean: |
103 | | - rm -rf $(addprefix ${HOME}/rpmbuild/,${RPMDIRS}) |
| 92 | + rm -rf $(foreach dir,${RPMDIRS},${HOME}/rpmbuild/${dir}/*) |
0 commit comments