X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=debian%2Ftg2quilt.mk;fp=debian%2Ftg2quilt.mk;h=5a041b9f79a8fd63d340ec7a8ecf6a2d606b01dc;hb=76821ee6e206d8ec4ce5a4f899b4b864ea32a2d2;hp=32e80e8a0dacf3d3a411c7499fec30e62688b4b0;hpb=4c2930197ce83ebd68193a6056990e42a9d98daf;p=topgit.git diff --git a/debian/tg2quilt.mk b/debian/tg2quilt.mk index 32e80e8..5a041b9 100644 --- a/debian/tg2quilt.mk +++ b/debian/tg2quilt.mk @@ -34,6 +34,9 @@ # removed. This means that edits to the series file are # likely to vanish. # +# tg-cleanexport: recreates the debian/patches directory from scratch, using +# tg-rmdir and tg-export. +# # tg-forceclean: cleans the source tree, just like the debian/rules clean # target, and forcefully removes the debian/patches # directory in doing so. Yes, *force*-fully. WHAM! @@ -55,7 +58,7 @@ ifeq ($(shell tg summary -t),) # This is not a TopGit branch, so just blubber a bit. - tg-export tg-clean tg-forceclean tg-rmdir: + tg-export tg-clean tg-forceclean tg-rmdir tg-cleanexport: @echo "E: The $@ target only works from a TopGit repository." >&2 else @@ -126,6 +129,9 @@ tg-clean: clean tg-forceclean: clean test -d $(PATCHES_DIR) && rm -r $(PATCHES_DIR) || : +tg-cleanexport: tg-rmdir + $(MAKE) --no-print-directory -f debian/rules tg-export + endif .PHONY: tg-clean tg-export tg-forceclean tg-rmdir