~ubuntu-branches/ubuntu/oneiric/enigmail/oneiric-updates

« back to all changes in this revision

Viewing changes to build/pymake/tests/define-directive.mk

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2010-04-10 01:42:24 UTC
  • Revision ID: james.westby@ubuntu.com-20100410014224-fbq9ui5x3b0h2t36
Tags: 2:1.0.1-0ubuntu1
* First releaase of enigmail 1.0.1 for tbird/icedove 3
  (LP: #527138)
* redo packaging from scratch 
  + add debian/make-orig target that uses xulrunner provided
    buildsystem + enigmail tarball to produce a proper orig.tar.gz
  + use debhelper 7 with mozilla-devscripts
  + use debian source format 3.0 (quilt)
  + patch enigmail to use frozen API only
    - add debian/patches/frozen_api.diff
  + patch build system to not link against -lxul - which isnt
    available for sdks produced by all-static apps like tbird
    - add debian/patches/build_system_dont_link_libxul.diff
  + add minimal build-depends to control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
define COMMANDS
 
2
shellvar=hello
 
3
test "$$shellvar" != "hello"
 
4
endef
 
5
 
 
6
define COMMANDS2
 
7
shellvar=hello; \
 
8
  test "$$shellvar" = "hello"
 
9
endef
 
10
 
 
11
define VARWITHCOMMENT # comment
 
12
value
 
13
endef
 
14
 
 
15
define TEST3
 
16
  whitespace
 
17
endef
 
18
 
 
19
define TEST4
 
20
define TEST5
 
21
random
 
22
endef
 
23
  endef
 
24
 
 
25
ifdef TEST5
 
26
$(error TEST5 should not be set)
 
27
endif
 
28
 
 
29
define TEST6
 
30
  define TEST7
 
31
random
 
32
endef
 
33
endef
 
34
 
 
35
ifdef TEST7
 
36
$(error TEST7 should not be set)
 
37
endif
 
38
 
 
39
define TEST8
 
40
is this # a comment?
 
41
endef
 
42
 
 
43
ifneq ($(TEST8),is this \# a comment?)
 
44
$(error TEST8 value not expected: $(TEST8))
 
45
endif
 
46
 
 
47
# A backslash continuation "hides" the endef
 
48
define TEST9
 
49
value \
 
50
endef
 
51
endef
 
52
 
 
53
all:
 
54
        $(COMMANDS)
 
55
        $(COMMANDS2)
 
56
        test '$(VARWITHCOMMENT)' = 'value'
 
57
        test '$(COMMANDS2)' = 'shellvar=hello; test "$$shellvar" = "hello"'
 
58
        test "$(TEST3)" = "  whitespace"
 
59
        @echo TEST-PASS