Line | |
---|
1 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | |
---|
12 | INSTALL = @INSTALL@ |
---|
13 | SHELL = @SHELL@ |
---|
14 | RM = rm -f |
---|
15 | VPATH = $(srcdir) |
---|
16 | |
---|
17 | build_date := $(shell date +%Y%m%d) |
---|
18 | machine := $(shell uname -m | sed 's/\ //') |
---|
19 | os := $(shell uname -s) |
---|
20 | bn := $(shell basename $(prefix)) |
---|
21 | |
---|
22 | tarfile = rappture-$(os)-$(machine)-$(build_date).tar.gz |
---|
23 | |
---|
24 | ENABLE_GUI = @ENABLE_GUI@ |
---|
25 | |
---|
26 | ifneq ($(ENABLE_GUI),) |
---|
27 | GUI = gui |
---|
28 | endif |
---|
29 | |
---|
30 | .PHONY: src gui lang test examples lib |
---|
31 | |
---|
32 | all: src gui examples test lib lang |
---|
33 | |
---|
34 | src: |
---|
35 | $(MAKE) -C src all |
---|
36 | gui: |
---|
37 | $(MAKE) -C gui all |
---|
38 | lang: |
---|
39 | $(MAKE) -C lang all |
---|
40 | lib: |
---|
41 | $(MAKE) -C lib all |
---|
42 | examples: |
---|
43 | $(MAKE) -C examples all |
---|
44 | test: |
---|
45 | #$(MAKE) -C test all |
---|
46 | |
---|
47 | install: |
---|
48 | $(MAKE) -C examples install |
---|
49 | $(MAKE) -C gui install |
---|
50 | $(MAKE) -C lib install |
---|
51 | $(MAKE) -C src install |
---|
52 | $(MAKE) -C lang install |
---|
53 | |
---|
54 | clean: |
---|
55 | $(MAKE) -C examples clean |
---|
56 | $(MAKE) -C gui clean |
---|
57 | $(MAKE) -C lang clean |
---|
58 | $(MAKE) -C lib clean |
---|
59 | $(MAKE) -C src clean |
---|
60 | $(MAKE) -C test clean |
---|
61 | |
---|
62 | distclean: |
---|
63 | $(MAKE) -C examples distclean |
---|
64 | $(MAKE) -C gui distclean |
---|
65 | $(MAKE) -C lang distclean |
---|
66 | $(MAKE) -C lib distclean |
---|
67 | $(MAKE) -C src distclean |
---|
68 | $(MAKE) -C test distclean |
---|
69 | $(RM) Makefile config.status config.log *~ |
---|
70 | |
---|
71 | package: |
---|
72 | tar -C $(prefix) -czlf $(tarfile) . |
---|
Note: See
TracBrowser
for help on using the repository browser.