-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
156 lines (124 loc) · 3.34 KB
/
Makefile.in
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#
# portz Makefile
#
# supported targets:
# install -- install to previously configured prefix
# check -- run the testsuite
#
srcdir=@srcdir@
top_srcdir=@top_srcdir@
top_builddir=@top_builddir@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir = @libdir@
datarootdir=@datarootdir@
datadir = @datadir@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DIR = mkdir -p
MAKEFOO=@MAKEFOO@
#
# makefoo lib > prefix/lib/makefoo
#
portz_bin_SCRIPTS = \
portz
portz_bin_INSTALL_DEST=$(bindir)
COMPONENTS += portz_bin
portz_lib_SCRIPTS = \
portz_dist \
portz_easy_install \
portz_get \
portz_install \
portz_invoke \
portz_packback \
portz_query \
portz_uninstall \
portz_build_site \
portz_make_patch \
portz_find_pkg \
scripts/verbatim/install_staging \
scripts/verbatim/build \
scripts/verbatim/find_src_dir \
scripts/fetch_src.sh \
scripts/functions.sh \
scripts/runtime.sh \
scripts/package_defs.sh \
scripts/build_defs.sh \
scripts/gnu/configure \
scripts/config.guess \
scripts/python/configure \
scripts/python/install_staging \
scripts/python/build \
scripts/common/deploy \
scripts/common/install_staging \
scripts/common/dist \
scripts/common/build \
scripts/common/make_manifest \
scripts/common/find_bld_dir \
scripts/common/unarchive \
scripts/common/make_pkginfo \
scripts/common/find_src_dir \
scripts/common/strip_debug_info \
scripts/install_staging.sh
portz_lib_FILES=\
portz_make_patch_diff_exclude.diff
portz_lib_INSTALL_DEST=$(libdir)/portz
COMPONENTS += portz_lib
bashfoo_lib_FILES =\
bashfoo/bashfoo.sh \
bashfoo/log.sh \
bashfoo/text.sh \
bashfoo/run.sh \
bashfoo/flag.sh \
bashfoo/auto_usage.sh \
bashfoo/path.sh \
bashfoo/temp.sh \
bashfoo/assert.sh
bashfoo_lib_INSTALL_DEST=$(libdir)/portz
COMPONENTS += bashfoo_lib
#
# makefoo documentation > docdir (prefix/share/doc/makefoo)
#
portz_doc_FILES = README.md TODO.txt
portz_doc_INSTALL_DEST=$(docdir)/portz
COMPONENTS += portz_doc
PUBLIC_COMPONENTS += $(COMPONENTS)
portz_COMPONENTS = \
portz_bin \
portz_lib \
portz_doc
MAKEFOO_DISTCHECK_TARGETS = check
CHECK_ROOT=$(shell pwd)/_portz-check
CHECK_prefix=$(CHECK_ROOT)${prefix}
CHECK_PORTZ=$(CHECK_ROOT)${bindir}/portz
check: check-install
EXTRA_DIST += test/repo/zlib.portz
EXTRA_DIST += autoconf_helpers/m4
# defaults for tests
export PORTZ_SEPARATE_EXEC=0
check-install:
rm -rf $(CHECK_prefix)
$(MAKE) install prefix=$(CHECK_prefix)
$(CHECK_PORTZ) --help
$(CHECK_PORTZ) --prefix $(CHECK_prefix) install $(srcdir)/test/repo/zlib.portz
$(CHECK_PORTZ) --prefix $(CHECK_prefix) list
test -f $(CHECK_prefix)/lib/portz/zlib.PKGINFO
test -f $(CHECK_prefix)/lib/portz/zlib.MANIFEST
$(CHECK_PORTZ) --prefix $(CHECK_prefix) files zlib
$(CHECK_PORTZ) --prefix $(CHECK_prefix) packback zlib
$(CHECK_PORTZ) --prefix $(CHECK_prefix) uninstall zlib
! test -f $(CHECK_prefix)/lib/portz/zlib.PKGINFO
! test -f $(CHECK_prefix)/lib/portz/zlib.MANIFEST
PACKAGES += portz
PRODUCT=portz
VERSION=0.0.3
#TBD, it shall be EXTRA_DIST_WILDCARD
# realized as in autoconf.mk EXTRA_DIST addition
#EXTRA_DIST = #$(shell cd $(top_srcdir) ; mtn ls known tests )
AUTOCONF_AUX_DIR=autoconf_helpers
MAKEFOO_USE += install-fhs
MAKEFOO_USE += autoconf
MAKEFOO_USE += rpm
MAKEFOO_USE += src-dist
include $(MAKEFOO)
# jedit: :tabSize=8:mode=makefile: