linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Kacur <jkacur@redhat.com>
To: Clark Williams <williams@redhat.com>
Cc: John Kacur <jkacur@redhat.com>,
	rt-users <linux-rt-users@vger.kernel.org>
Subject: [PATCH 2/3] rt-tests: Makefile - Specify when a target is a PHONY target.
Date: Mon, 16 Nov 2009 19:40:13 +0100	[thread overview]
Message-ID: <1258396814-12929-3-git-send-email-jkacur@redhat.com> (raw)
In-Reply-To: <1258396814-12929-2-git-send-email-jkacur@redhat.com>

Signed-off-by: John Kacur: <jkacur@redhat.com>
---
 Makefile |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 9685587..96c7bca 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ prefix  ?= /usr/local
 bindir  ?= $(prefix)/bin
 mandir	?= $(prefix)/share/man/man8
 
+.PHONY: all
 all: $(TARGETS)
 
 cyclictest: src/cyclictest/cyclictest.c
@@ -33,16 +34,20 @@ rt-migrate-test: src/rt-migrate-test/rt-migrate-test.c
 CLEANUP  = $(TARGETS) *.o .depend *.*~ *.orig *.rej rt-tests.spec
 CLEANUP += $(if $(wildcard .git), ChangeLog)
 
+.PHONY: clean
 clean:
 	for F in $(CLEANUP); do find -type f -name $$F | xargs rm -f; done
 	rm -f hwlatdetect
 
+.PHONY: distclean
 distclean: clean
 	rm -rf BUILD RPMS SRPMS releases *.tar.gz rt-tests.spec
 
+.PHONY: changelog
 changelog:
 	git log >ChangeLog
 
+.PHONY: all
 install: all
 	mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)"
 	cp $(TARGETS) "$(DESTDIR)$(bindir)"
@@ -50,6 +55,7 @@ install: all
 	gzip src/pi_tests/pi_stress.8 -c >"$(DESTDIR)$(mandir)/pi_stress.8.gz"
 	gzip src/hwlatdetect/hwlatdetect.8 -c >"$(DESTDIR)$(mandir)/hwlatdetect.8.gz"
 
+.PHONY: release
 release: clean changelog
 	mkdir -p releases
 	rm -rf tmp && mkdir -p tmp/rt-tests
@@ -58,12 +64,16 @@ release: clean changelog
 	rm -f ChangeLog
 	cp rt-tests-$(VERSION_STRING).tar.gz releases
 
+.PHONY: push
 push:	release
 	scripts/do-git-push $(VERSION_STRING)
 
+.PHONY: pushtest
 pushtest: release
 	scripts/do-git-push --test $(VERSION_STRING)
 
+# Note although rt-tests.spec is a file, it is okay to remake it every time.
+.PHONY: rt-tests.spec
 rt-tests.spec: Makefile rt-tests.spec-in
 	sed s/__VERSION__/$(VERSION_STRING)/ <$@-in >$@
 
@@ -72,14 +82,17 @@ RPMARGS	:=	--define "_topdir $(HERE)" 	\
 		--define "_sourcedir $(HERE)/releases" 	\
 		--define "_builddir $(HERE)/BUILD" 	\
 
+.PHONY: rpm
 rpm:	rpmdirs release rt-tests.spec
 	rpmbuild -ba $(RPMARGS) rt-tests.spec
 
+.PHONY: rpmdirs
 rpmdirs:
 	@[ -d BUILD ]  || mkdir BUILD
 	@[ -d RPMS ]   || mkdir RPMS
 	@[ -d SRPMS ]  || mkdir SRPMS
 
+.PHONY: help
 help:
 	@echo ""
 	@echo " rt-tests useful Makefile targets:"
-- 
1.6.2.5


  reply	other threads:[~2009-11-16 18:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-16 18:40 [PATCH 0/3] rt-tests: Makefile changes John Kacur
2009-11-16 18:40 ` [PATCH 1/3] rt-tests: Makefile - Change FLAGS to CFLAGS John Kacur
2009-11-16 18:40   ` John Kacur [this message]
2009-11-16 18:40     ` [PATCH 3/3] rt-tests: Makefile - Add a DEBUG option to the Makefile John Kacur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1258396814-12929-3-git-send-email-jkacur@redhat.com \
    --to=jkacur@redhat.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=williams@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).