File: Makefile.in

package info (click to toggle)
gretl 1.3.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 20,544 kB
  • ctags: 11,029
  • sloc: ansic: 156,263; xml: 31,443; sh: 8,558; makefile: 1,749; lisp: 1,120; perl: 911
file content (86 lines) | stat: -rw-r--r-- 1,677 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
topsrc = @top_srcdir@

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
CC = @CC@
CFLAGS = @CFLAGS@
MAKE = @MAKE@
INSTALL = @INSTALL@
LN = @LN_S@
have_gtk = @have_gtk@

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

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

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

export

tooldir = $(topsrc)/tools

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

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

subdirs: $(SUBDIRS)

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

clean:
	for d in $(ALLSUBDIRS) ; do $(MAKE) -C $$d clean; done

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) $(prefix) $(topsrc)/gretl.1 
	$(tooldir)/install_man $(tooldir) $(prefix) $(topsrc)/gretl-config.1

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

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 gretl-config libtool Makefile
	for d in $(ALLSUBDIRS) ; do $(MAKE) -C $$d distclean; done

check:
	make -C tests check

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