File: Makefile.in

package info (click to toggle)
gretl 1.9.1-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 31,704 kB
  • ctags: 19,144
  • sloc: ansic: 276,238; sh: 10,907; makefile: 1,995; lisp: 1,205; perl: 364; xml: 320
file content (109 lines) | stat: -rw-r--r-- 2,052 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
topsrc = @top_srcdir@

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
CC = @CC@
CFLAGS = @CFLAGS@
MAKE = @MAKE@
INSTALL = @INSTALL@
LN = @LN_S@
HOSTCC = @HOSTCC@
have_gtk = @have_gtk@
build_po = @build_po@
build_doc = @build_docs@

ifeq ($(CC),)
  CC = gcc
endif

ifeq ($(HOSTCC),)
  HOSTCC = $(CC)
endif

ifeq ($(have_gtk),2.0)
  GUIDIR = gui2
endif

ifeq ($(build_po),yes)
  PODIR = po
endif

ifeq ($(build_doc),yes)
  DOCDIR = doc
endif

INSTALL_PROGRAM = ${INSTALL} -m 755
INSTALL_DATA = ${INSTALL} -m 644

export

tooldir = $(topsrc)/tools

SUBDIRS = lib cli $(GUIDIR) plugin $(PODIR) share
ALLSUBDIRS = lib cli gui2 plugin po share tests

.PHONY : subdirs $(SUBDIRS) clean installdirs install install-strip \
install-man tags dist distclean check

subdirs: $(SUBDIRS)

$(SUBDIRS):
	$(MAKE) -C $@

pdfdocs:
	$(MAKE) -C $(DOCDIR)

clean:
	for d in $(ALLSUBDIRS) ; do $(MAKE) -C $$d clean; done
	rm -f build.h

installdirs:
	$(tooldir)/mkinstalldirs $(libdir) $(includedir) $(bindir)

install: $(SUBDIRS) installdirs install-man
	for d in $(SUBDIRS) ; do $(MAKE) -C $$d install; done
	$(MAKE) -C share install

install-strip: $(SUBDIRS) installdirs install-man	
	for d in $(SUBDIRS) ; do $(MAKE) -C $$d install-strip; done
	$(MAKE) -C share install-strip

install-man:
	$(tooldir)/install_man $(tooldir) $(DESTDIR)$(prefix) $(topsrc)/gretl.1 

tags:
	etags $(topsrc)/lib/src/*.[ch] $(topsrc)/cli/*.[ch] \
	$(topsrc)/$(GUIDIR)/*.[ch] $(topsrc)/plugin/*.[ch] \
	$(topsrc)/cephes/*.c $(topsrc)/plugin/zipunzip/*.[ch] \
	$(topsrc)/plugin/rq/*.[ch]

builddate: $(topsrc)/builddate.c
	$(HOSTCC) -o $@ $<

buildstamp: builddate
	./builddate

dist: 
	$(tooldir)/makedist

distclean: clean
	make -C win32 clean
	rm -f config.log config.cache config.status config.h gretl.pc
	rm -f gretl_sh libtool Makefile
	for d in $(ALLSUBDIRS) ; do $(MAKE) -C $$d distclean; done

check:
	make -C tests check

osx-dist:
	make -C osx postinst

# dependency for parallel builds
cli: lib
$(GUIDIR): lib buildstamp
plugin: lib
tests: lib