# to be included from dsf-patch # define variables # e.g. # patchdir = debian/patches # patchopts = -p0 -N patchopts += -g0 # define patches patchnames = patch-deb patch-src patch-texdoc patch-texdoctk patch-tmp # define dependencies between patches # (needed if some patches act on the same file) PATCH_TMP_PREREQUISITES = patch-deb patch-src patch-texdoc patch-texdoctk edit-patch-tmp-prereq = $(foreach prereq,$(PATCH_TMP_PREREQUISITES), $(patchdir)/edit-$(prereq)-stamp) apply-patch-tmp-prereq = $(foreach prereq,$(PATCH_TMP_PREREQUISITES), $(patchdir)/apply-$(prereq)-stamp) create-patch-tmp-targets = $(foreach prereq,$(PATCH_TMP_PREREQUISITES), $(patchdir)/create-$(prereq)) unapply-patch-tmp-targets = $(foreach prereq,$(PATCH_TMP_PREREQUISITES), $(patchdir)/unapply-$(prereq)) edit-patch-tmp: $(edit-patch-tmp-prereq) apply-patch-tmp: $(apply-patch-tmp-prereq) echo $(apply-patch-tmp-prereq) create-patch-tmp: after-create-targets += $(create-patch-tmp-targets) unapply-patch-tmp: after-unapply-targets += $(unapply-patch-tmp-targets)