patchupdate.py: Improve generated Makefile and delete *.ok files on error.

This commit is contained in:
Sebastian Lackner
2014-07-25 17:52:08 +02:00
parent e827cc078f
commit 1f95d8181d
2 changed files with 26 additions and 14 deletions

View File

@@ -26,14 +26,20 @@ PATCHLIST := 00-Commandline.ok \
98-Miscellaneous.ok
.PHONY: install
install: $(PATCHLIST)
cat *.ok | sort | $(CURDIR)/../debian/tools/patchlist.sh | $(PATCH)
cd $(DESTDIR); autoreconf -f
cd $(DESTDIR); ./tools/make_requests
rm -f *.ok
install:
@$(MAKE) apply; \
status=$$?; \
rm -f *.ok; \
exit $$status
.PHONY: abort
abort:
.PHONY: apply
apply: $(PATCHLIST)
cat *.ok | sort | $(CURDIR)/../debian/tools/patchlist.sh | $(PATCH)
cd $(DESTDIR) && autoreconf -f
cd $(DESTDIR) && ./tools/make_requests
.PHONY: clean
clean:
rm -f *.ok
.NOTPARALLEL: