-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (38 loc) · 878 Bytes
/
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
50
# SPDX-License-Identifier: GPL-2.0
# Copyright 2020 Hewlett Packard Enterprise Development LP
export TOPDIR := $(if $(TOPDIR),$(TOPDIR),$(shell readlink -e .))
SUBDIRS = cxi ucxi
all clean: $(SUBDIRS)
rm -rf WORKSPACE
rm -rf RPMS
rm -f vars.sh
$(SUBDIRS)::
$(MAKE) -C $@ $(MAKECMDGOALS)
# Run the testsuite
check:
make -C tests prove
atu-test:
make -C tests t0400-atu.t
PACKAGE = cray-cxi-driver
VERSION = 0.9
DIST_FILES = \
cxi/*.c \
cxi/*.h \
cxi/Makefile \
cxi/Kbuild \
ucxi/*.c \
ucxi/*.h \
ucxi/Makefile \
include/ \
cray-cxi-driver.spec \
dkms.conf.in \
50-cxi-driver.rules \
Makefile \
README \
README.eth
.PHONY: dist
dist: $(DIST_FILES)
tar czf $(PACKAGE)-$(VERSION).tar.gz --transform 's/^/$(PACKAGE)-$(VERSION)\//' $(DIST_FILES)
$(PACKAGE)-$(VERSION).tar.gz: dist
rpm: $(PACKAGE)-$(VERSION).tar.gz
BUILD_METADATA='0' rpmbuild -ta $<