~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/test-projects/console-project-with-makefile/rules.make

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
clean-local:
 
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
 
7
 
 
8
install-local:
 
9
uninstall-local:
 
10
 
 
11
q2quote = '$(subst ?, ,$1)'
 
12
quote_each = $(foreach f,$(call s2q,$1),$(call q2quote,$f))
 
13
 
 
14
dist-local:
 
15
        make pre-dist-local-hook "distdir=$$distdir"
 
16
        for f in Makefile $(call quote_each,$(EXTRA_DIST)); do \
 
17
                d=`dirname "$$f"`; \
 
18
                test -d "$(distdir)/$$d" || \
 
19
                        mkdir -p "$(distdir)/$$d"; \
 
20
                cp -p "$$f" "$(distdir)/$$d" || exit 1; \
 
21
        done
 
22
        make post-dist-local-hook "distdir=$$distdir"
 
23
 
 
24
dist-local-recursive:
 
25
        for dir in $(call quote_each,$(SUBDIRS)); do \
 
26
                mkdir -p "$(distdir)/$$dir" || true; \
 
27
                case "$$dir" in \
 
28
                .) make dist-local "distdir=$(distdir)" || exit 1;; \
 
29
                *) (cd "$$dir"; make dist-local "distdir=$(distdir)/$$dir") || exit 1; \
 
30
                esac \
 
31
        done
 
32
 
 
33
#hooks: Available hooks - all, clean, install, uninstall and dist
 
34
#       and their *-local variants
 
35
pre-%-hook: ; @:
 
36
post-%-hook: ; @:
 
37
 
 
38
#targets for custom commands
 
39
%_BeforeBuild: ; @:
 
40
%_AfterBuild: ; @:
 
41
%_BeforeClean: ; @:
 
42
%_AfterClean: ; @: