-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile.am
47 lines (34 loc) · 1.35 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
ACLOCAL_AMFLAGS = -I config
# FIXME: copy everything under scripts
script_dir_u := scripts/ust
files_u := $(foreach script,$(script_dir_u),$(wildcard $(script)/*))
script_dest_u := $(DESTDIR)$(pkgdatadir)/$(script_dir_u)
script_dir_k := scripts/kernel
files_k := $(foreach script,$(script_dir_k),$(wildcard $(script)/*))
script_dest_k := $(DESTDIR)$(pkgdatadir)/$(script_dir_k)
if HAVE_UST
USTDIR = ust
endif
script_dir_p := scripts/profiles
files_p := $(foreach script,$(script_dir_p),$(wildcard $(script)/*))
script_dest_p := $(DESTDIR)$(pkgdatadir)/$(script_dir_p)
SUBDIRS = src utils $(USTDIR) tests
EXTRA_DIST = $(script_dir_u) $(script_dir_k) $(script_dir_p) doc utils
install-data-local:
test -z "$(script_dest_u)" || $(MKDIR_P) "$(script_dest_u)"
test -z "$(script_dest_k)" || $(MKDIR_P) "$(script_dest_k)"
test -z "$(script_dest_p)" || $(MKDIR_P) "$(script_dest_p)"
$(INSTALL_SCRIPT) -m 0755 $(files_u) "$(script_dest_u)"
$(INSTALL_SCRIPT) -m 0755 $(files_k) "$(script_dest_k)"
$(INSTALL_SCRIPT) -m 0644 $(files_p) "$(script_dest_p)"
uninstall-local:
rm -rf "$(script_dest_u)"
rm -rf "$(script_dest_k)"
rm -rf "$(script_dest_p)"
# requires gnulib
ChangeLog:
if test -d $(top_srcdir)/.git; then \
sh /usr/share/gnulib/build-aux/gitlog-to-changelog > $@; \
fi
dist: ChangeLog
.PHONY: ChangeLog