-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (37 loc) · 1.01 KB
/
Makefile
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
#
# Makefile for ppc64-diag
#
include rules.mk
.SILENT:
SUBDIRS = rtas_errd diags scripts ela lpd
LICENSE = COPYRIGHT
DOXYGEN_CFG = doxygen.config
TARBALL_FILES += $(DOXYGEN_CFG)
all:
@echo "Building rtas_errd files..."
@$(MAKE) -C rtas_errd
@echo "Building diags files..."
@$(MAKE) -C diags
@echo "Building ela files..."
@$(MAKE) -C ela
@echo "Building lpd files..."
@$(MAKE) -C lpd
install: all
@$(call install_files,$(LICENSE),644,$(DESTDIR)/usr/share/doc/packages/ppc64-diag)
@$(foreach d,$(SUBDIRS), $(MAKE) -C $d install;)
uninstall:
@$(call uninstall_files,$(LICENSE),644,$(DESTDIR)/usr/share/doc/packages/ppc64-diag)
@$(foreach d,$(SUBDIRS), $(MAKE) -C $d uninstall;)
rpm: all
@echo "Creating rpm..."
@export DESTDIR=$(SHIPDIR); $(MAKE) install
@$(RPM) -bb ppc64-diag.spec
@rm -rf $(SHIPDIR)
tarball: clean
@echo "Creating source tarball..."
@$(BUILD_TARBALL)
doc: $(DOXYGEN_CFG)
@$(DOXYGEN) $(DOXYGEN_CFG)
clean:
@$(foreach d,$(SUBDIRS), $(MAKE) -C $d clean;)
@$(CLEAN) $(SHIPDIR) $(TARBALL) doc