File: Makefile.in

package info (click to toggle)
slang2 2.3.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,488 kB
  • sloc: ansic: 101,756; sh: 3,435; makefile: 1,046; pascal: 440
file content (109 lines) | stat: -rw-r--r-- 3,425 bytes parent folder | download | duplicates (5)
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
# -*- make -*-

#This is a UNIX-only makefile.  For other systems, get a makefile from
#src/mkfiles/

# If you want to change these variables, re-run the configure script.
INSTALL= @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
pkgconfigdir = @pkgconfigdir@
#---------------------------------------------------------------------------
# DESTDIR is designed to facilitate making packages.  Normally it is empty
#---------------------------------------------------------------------------
#DESTDIR =
DEST_PKGCONFIGDIR = $(DESTDIR)$(pkgconfigdir)
#
MKINSDIR = autoconf/mkinsdir.sh

@SET_MAKE@
SHELL = /bin/sh

all: elf
Makefile: configure autoconf/Makefile.in
	@echo "Makefile is older than the configure script".
	@echo "Please re-run the configure script."
	@exit 1
slsh/Makefile: configure slsh/Makefile.in
	@echo "slsh/Makefile is older than its dependencies".
	@echo "Please re-run the configure script."
	@exit 1
modules/Makefile: configure modules/Makefile.in
	@echo "modules/Makefile is older than its dependencies".
	@echo "Please re-run the configure script."
	@exit 1
src/Makefile: configure src/Makefile.in src/config.hin
	@echo "src/Makefile is older than its dependencies".
	@echo "Please re-run the configure script."
	@exit 1
#
makefiles: Makefile slsh/Makefile modules/Makefile src/Makefile
help:
	@echo "make install ==> shared version of the library, slsh and modules"
	@echo "make install-static ==> static version of the library and slsh; no modules"
	@echo "make install-all ==> shared/static versions of the library/modules + shared slsh."
	@echo "make install-modules ==> install the modules"
	@echo "make check ==> Build the library and run the regression tests"
slang.pc: configure autoconf/slangpc.in
	@echo "slang.pc needs to be updated -- rerun configure"
	@exit 1
static: makefiles slang.pc
	cd src; $(MAKE) static
	cd slsh; $(MAKE) static
modules:
	cd modules; $(MAKE) all
elf: makefiles slang.pc
	cd src; $(MAKE) elf
	cd slsh; $(MAKE) all
	cd modules; $(MAKE) all
	@echo Use make install to install it.
runtests: all
	@failed=0; \
	cd src; $(MAKE) runtests || failed=1; cd ..; \
	cd modules; $(MAKE) runtests || failed=1; cd ..; \
	cd slsh; $(MAKE) runtests || failed=1; cd ..; \
	exit $$failed
check: runtests

demos:
	cd demo; $(MAKE)
clean:
	/bin/rm -f *~
	cd src; $(MAKE) clean
	cd modules; $(MAKE) clean
	cd slsh; $(MAKE) clean
	cd demo; $(MAKE) clean
install-static: install-pkgconfig
	cd src; $(MAKE) install-static
	cd slsh; $(MAKE) install-static
install-pkgconfig: slang.pc
	$(MKINSDIR) $(DEST_PKGCONFIGDIR)
	$(INSTALL_DATA) slang.pc $(DEST_PKGCONFIGDIR)/
install-elf: install-pkgconfig
	cd src; $(MAKE) install-elf
	@echo Now installing slsh
	cd slsh; $(MAKE) install
	@echo Now installing the modules
	cd modules; $(MAKE) install
	@echo ""
	@echo "On some systems, e.g., linux, you may also have to run ldconfig."
	@echo ""
install: install-elf install-pkgconfig
install-all: install-elf
	cd src; $(MAKE) install-static
install-modules:
	cd modules; $(MAKE) install
install-links:
	cd src; $(MAKE) install-links
#
distclean:
	/bin/rm -f *~ Makefile config.status config.log config.cache files.pck slang.pc
	cd src; $(MAKE) distclean
	cd demo; $(MAKE) distclean
	cd modules; $(MAKE) distclean
	cd slsh; $(MAKE) distclean
#
.PHONY: all help static elf install clean check install-elf install-static makefiles install-pkgconfig
#