source: trunk/Makefile.in @ 1148

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