Commit | Line | Data |
---|---|---|
74ea13c1 CY |
1 | # Test makefile -*- makefile -*- |
2 | ||
3 | top= | |
4 | ede_FILES=Project.ede Makefile | |
5 | ||
6 | example_MISC=semantic-skel.el skeleton.bnf | |
7 | init_LISP=semantic-load.el | |
8 | DISTDIR=$(top)semantic-$(VERSION) | |
9 | ||
10 | # really goofy & variables tabs | |
11 | A= B | |
12 | A =B | |
13 | A=B C | |
14 | A=B\ | |
15 | C | |
16 | ||
17 | A= http://${B} \ | |
18 | ftp://${B} | |
19 | B= test | |
20 | ||
21 | all: example semantic Languages tools senator semantic.info | |
22 | ||
23 | test ${B}: foo bar | |
24 | @echo ${A} | |
25 | ||
26 | example: | |
27 | @ | |
28 | ||
29 | init: $(init_LISP) | |
30 | @echo "(add-to-list 'load-path nil)" > $@-compile-script | |
31 | @if test ! -z "${LOADPATH}" ; then\ | |
32 | for loadpath in ${LOADPATH}; do \ | |
33 | echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \ | |
34 | done;\ | |
35 | fi | |
36 | @echo "(setq debug-on-error t)" >> $@-compile-script | |
37 | $(EMACS) -batch -l $@-compile-script -f batch-byte-compile $^ | |
38 | ||
39 | include tesset.mk tusset.mk | |
40 | include oneset.mk | |
41 | ||
42 | ifdef SOME_SYMBOL | |
43 | VAR1 = foo | |
44 | else | |
45 | VAR1 = bar | |
46 | endif | |
47 | ||
48 | ifndef SOME_OTHER_SYMBOL | |
49 | VAR1 = baz | |
50 | endif | |
51 | ||
52 | ifeq ($(VAR1), foo) | |
53 | VAR2 = gleep | |
54 | else | |
55 | ifneq ($(VAR1), foo) | |
56 | VAR2 = glop | |
57 | endif | |
58 | endif | |
59 | ||
60 | # End of Makefile |