2 make pre-clean-local-hook
3 make
$(CONFIG
)_BeforeClean
4 -rm -f
$(call quote_each
,$(CLEANFILES
))
5 make
$(CONFIG
)_AfterClean
6 make post-clean-local-hook
11 q2quote
= '$(subst ?, ,$1)'
12 quote_each
= $(foreach f
,$(call s2q
,$1),$(call q2quote
,$f))
15 make pre-dist-local-hook
"distdir=$$distdir"
16 for f in Makefile
$(call quote_each
,$(EXTRA_DIST
)); do \
18 test -d
"$(distdir)/$$d" || \
19 mkdir
-p
"$(distdir)/$$d"; \
20 cp
-p
"$$f" "$(distdir)/$$d" || exit
1; \
22 make post-dist-local-hook
"distdir=$$distdir"
25 for
dir in
$(call quote_each
,$(SUBDIRS
)); do \
26 mkdir
-p
"$(distdir)/$$dir" || true
; \
28 .
) make dist-local
"distdir=$(distdir)" || exit
1;; \
29 *) (cd
"$$dir"; make dist-local
"distdir=$(distdir)/$$dir") || exit
1; \
33 #hooks: Available hooks - all, clean, install, uninstall and dist
34 # and their *-local variants
38 #targets for custom commands