-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
60 lines (45 loc) · 1.52 KB
/
Makefile.am
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
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
edit = sed \
-e 's|@PACKAGE\@|$(PACKAGE)|g' \
-e 's|@PACKAGE_BUGREPORT\@|$(PACKAGE_BUGREPORT)|g' \
-e 's|@PACKAGE_NAME\@|$(PACKAGE_NAME)|g' \
-e 's|@PACKAGE_URL\@|$(PACKAGE_URL)|g' \
-e 's|@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|g' \
-e 's|@datadir\@|$(pkgdatadir)|g' \
-e 's|@libexecdir\@|$(libexecdir)|g' \
-e 's|@prefix\@|$(prefix)|g'
composed_bin_scripts = scripts/start-qemu.sh
bin_SCRIPTS = $(composed_bin_scripts)
composed_nobase_bin_scripts = tdd-lib/util.sh
nobase_bin_SCRIPTS = $(composed_nobase_bin_scripts)
$(composed_bin_scripts): % : Makefile $(srcdir)/%.in
rm -f '$(@)' '$(@).tmp'
mkdir -p '$(@D)'
$(edit) '$(srcdir)/$(@).in' > '$(@).tmp'
chmod +x '$(@).tmp'
mv '$(@).tmp' '$(@)'
$(composed_nobase_bin_scripts): % : Makefile $(srcdir)/scripts/%
rm -f '$(@)' '$(@).tmp'
mkdir -p '$(@D)'
$(edit) '$(srcdir)/scripts/$(@)' > '$(@).tmp'
chmod +x '$(@).tmp'
mv '$(@).tmp' '$(@)'
# mkdir -p '$(@D)'
# cp -av '$(srcdir)/scripts/$(@)' '$(@)'
EXTRA_DIST = bootstrap configure.ac COPYING m4 mit-plus-license.txt README.md \
tests/* version.sh $(addsuffix .in, $(composed_bin_scripts)) \
$(nobase_bin_SCRIPTS)
CLEANFILES = $(bin_SCRIPTS)
MAINTAINERCLEANFILES = aclocal.m4 compile config.h* configure depcomp \
install-sh Makefile.in missing $(PACKAGE)-*.gz
maintainer-clean-local:
rm -rf m4 .deps
.PHONY: help
help:
@echo "Targets:"
@echo " make install"
@echo " make dist"
@echo " make distcheck"
@echo " make distclean"
@echo " make maintainer-clean"