File: Makefile.in

package info (click to toggle)
yorick-yeti 6.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,416 kB
  • ctags: 1,683
  • sloc: ansic: 15,860; makefile: 285; sh: 88; sed: 4
file content (108 lines) | stat: -rw-r--r-- 2,787 bytes parent folder | download | duplicates (2)
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
#
# Makefile -
#
# Top-level Makefile for Yeti package and plugins.
#
#------------------------------------------------------------------------------

# These values filled in by: yorick -batch make.i
Y_MAKEDIR=
Y_EXE=
Y_EXE_PKGS=
Y_EXE_HOME=
Y_EXE_SITE=

#---------------------------------------------------------- configuration flags

# These values filled in by: yorick -batch config.i
YETI_PKGS = core fftw regex tiff
YETI_VERSION_MAJOR = x
YETI_VERSION_MINOR = x
YETI_VERSION_MICRO = x
YETI_VERSION_SUFFIX = ""
YORICK_VERSION_MAJOR = x
YORICK_VERSION_MINOR = x
YORICK_VERSION_MICRO = x
YORICK_VERSION_SUFFIX = ""

SUBDIRS = $(YETI_PKGS) doc

TMPDIR=/tmp

DISTRIB_PKGS = core fftw regex tiff
DISTRIB_DIRS = doc $(DISTRIB_PKGS)
DISTRIB_FILES = AUTHORS LICENSE.md NEWS README.md VERSION \
	Makefile Makefile.in configure config.h.in config.i

#------------------------------------------------------------------------------

default: all

all: check
	@for dir in $(SUBDIRS); do \
	  (cd $$dir; make); \
	done

check:
	@if test -z "$(YETI_PKGS)" -o ! -r config.h ; then \
	  echo "***************************************************************"; \
	  echo "  Before building Yeti, you must run the configuration script."; \
	  echo "  This is achieved by a command like:"; \
	  echo "      yorick -batch ./config.i [...]"; \
	  echo ""; \
	  echo "  See README.md file for detailled instructions.  For a summary"; \
	  echo "  of configuration options, you can also try:"; \
	  echo "      yorick -batch ./config.i --help"; \
	  echo "***************************************************************"; \
	  false; \
	else \
	  true; \
	fi

install: check
	@for dir in $(SUBDIRS); do \
	  (cd $$dir; make $@); \
	done
#	@for src in AUTHORS COPYING NEWS README.md LICENSE.md VERSION; do \
#	  dst=$(Y_EXE_SITE)/doc/$$src.yeti; \
#	  cp -pf $$src $$dst; \
#	  chmod 644 $$dst; \
#	done

clean: check
	rm -f *~ *.tmp
	@for dir in $(SUBDIRS); do \
	  (cd $$dir; make $@); \
	done

distclean: clean
	rm -f config.h Makefile

distrib:
	@version=`cat VERSION`; \
	target="yeti-$${version}"; \
	tmpdir="$(TMPDIR)/$${target}"; \
	archive="$${tmpdir}.tar.bz2"; \
	if test -d "$${tmpdir}"; then \
	  echo "directory $${tmpdir} already exists"; \
	  false; \
	else \
	  olddir=`pwd`; \
	  mkdir -p "$${tmpdir}"; \
	  for file in $(DISTRIB_FILES); do \
	    cp -a "$${file}" "$${tmpdir}/$${file}"; \
	  done; \
	  for dir in $(DISTRIB_DIRS); do \
	    cp -a "$${dir}" "$${tmpdir}/$${dir}"; \
	  done; \
	  cd "$${tmpdir}"; \
	  touch config.h; \
	  make clean YETI_PKGS="$(DISTRIB_PKGS)"; \
	  rm -f config.h; \
	  rm -rf */RCS */*~; \
	  cd "$(TMPDIR)"; \
	  tar cf - "$${target}" | bzip2 -9 > "$${archive}"; \
	  cd "$${olddir}"; \
	  rm -rf "$${tmpdir}"; \
	  echo "archive is: $${archive}"; \
	fi