Skip to contentSkip to conversation

misc: add handy tarball targets

PATCH New Eric Sandeen 3 participants 3 messages Aug 1, 2018 – Aug 2, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: add handy tarball targets

It's a pain to need to know which version we're on to be able to create a tarball, just make a couple of simple "tarball" and "tarxz" targets that just DTRT and make a tarball with the current version.

---

Makefile +3 -0
index 6774825..21983a3 100644
@@ -178,6 +178,9 @@ $(SRCTARXZ) : default $(SRCTARINC) .gitcensus
 	   `cat .gitcensus` $(SRCTARINC)
 	echo Wrote: $@
 
+tarball: $(SRCTAR)
+tarxz: $(SRCTARXZ)
+
 .gitcensus: $(_FORCE)
 	$(Q)if test -d .git; then \
 	  git ls-files > .gitcensus && echo "new .gitcensus"; \
#1 lore raw

PATCH v2 1/1 misc: add handy tarball targets

It's a pain to need to know which version we're on to be able to create a tarball, just make a couple of simple "tarball" and "tarxz" targets that just DTRT and make a tarball with the current version.

---

V2: give Darrick names he likes ;) and mark these and a bunch of other targets as .PHONY

Makefile +5 -0
index 6774825..ad35114 100644
@@ -178,6 +178,11 @@ $(SRCTARXZ) : default $(SRCTARINC) .gitcensus
 	   `cat .gitcensus` $(SRCTARINC)
 	echo Wrote: $@
 
+targz: $(SRCTAR)
+tarxz: $(SRCTARXZ)
+
+.PHONY: install install-dev dist clean distclean realclean targz tarxz
+
 .gitcensus: $(_FORCE)
 	$(Q)if test -d .git; then \
 	  git ls-files > .gitcensus && echo "new .gitcensus"; \
Reviewed-by on v2 1/1
#2 lore raw
Quoted 4 lines · Eric Sandeen

It's a pain to need to know which version we're on to be able to create a tarball, just make a couple of simple "tarball" and "tarxz" targets that just DTRT and make a tarball with the current version.

I believe the V2 description should also be updated to - simple "targz" and "tarxz" - ? :)

After fixing the description:

Quoted 28 lines

---

V2: give Darrick names he likes ;) and mark these and a bunch of other targets as .PHONY

Makefile +5 -1
index 6774825..ad35114 100644
@@ -178,6 +178,11 @@ $(SRCTARXZ) : default $(SRCTARINC) .gitcensus
 	   `cat .gitcensus` $(SRCTARINC)
 	echo Wrote: $@
 
+targz: $(SRCTAR)
+tarxz: $(SRCTARXZ)
+
+.PHONY: install install-dev dist clean distclean realclean targz tarxz
+
 .gitcensus: $(_FORCE)
 	$(Q)if test -d .git; then \
 	  git ls-files > .gitcensus && echo "new .gitcensus"; \
 
--

To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Carlos