-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathetherlabmaster.Makefile
86 lines (61 loc) · 1.99 KB
/
etherlabmaster.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
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
#
# Copyright (c) 2019 Jeong Han Lee
# Copyright (c) 2018 - 2019 European Spallation Source ERIC
#
# The program is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of the
# License, or any newer version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see https://www.gnu.org/licenses/gpl-2.0.txt
#
#
# Author : Jeong Han Lee
# email : [email protected]
# Date : Monday, May 6 21:57:44 CEST 2019
# version : 0.0.3
#
#DKMS:=/usr/sbin/dkms
#DKMS:=/home/jhlee/private_gitsrc/dkms
autoconf:
$(QUIET) touch ChangeLog
$(QUIET) autoreconf --force --install -v
./configure $(E3_ETHERLAB_CONF_OPTIONS) --prefix=$(E3_ETHERLAB_INSTALL_LOCATION)
build:
make
install: build
make install
uninstall:
make uninstall
modules:
make modules
modules_clean:
make modules clean
modules_install:
make modules install
$(QUIET) depmod -a
modules_uninstall:
make modules uninstall
$(QUIET) depmod -a
dkms_build:
$(DKMS) build -m $(E3_MODULE_NAME) -v $(E3_MODULE_VERSION)
# $(DKMS) build -m $(E3_MODULE_NAME) -v $(E3_MODULE_VERSION) --verbose
dkms_add:
$(DKMS) add -m $(E3_MODULE_NAME) -v $(E3_MODULE_VERSION)
dkms_remove:
$(DKMS) remove -m $(E3_MODULE_NAME) -v $(E3_MODULE_VERSION) --all
dkms_install:
$(DKMS) install -m $(E3_MODULE_NAME) -v $(E3_MODULE_VERSION) --force
$(QUIET) depmod -a
dkms_uninstall:
$(DKMS) uninstall -m $(E3_MODULE_NAME) -v $(E3_MODULE_VERSION)
$(QUIET) depmod -a
clean:
make clean
.PHONY: autoconf build install uninstall modules modules_install modules_uninstall clean dkms_build dkms_add dkms_remove dkms_install dkms_uninstall