forked from icshwi/etherlabmaster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathetherlabmaster.Makefile
More file actions
78 lines (54 loc) · 1.71 KB
/
etherlabmaster.Makefile
File metadata and controls
78 lines (54 loc) · 1.71 KB
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
#
# Copyright (c) 2018 - Present 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 : jeonghan.lee@gmail.com
# Date : Wednesday, July 25 23:31:31 CEST 2018
# version : 0.0.1
#
DKMS:=/usr/sbin/dkms
autoconf:
touch ChangeLog
autoreconf --force --install -v
# ./configure --disable-8139too --prefix=$(E3_MODULES_VENDOR_LIBS_LOCATION)
./configure $(E3_ETHERLAB_CONF_OPTIONS) --prefix=$(E3_ETHERLAB_INSTALL_LOCATION)
build:
make
install: build
make install
uninstall:
make uninstall
modules:
make modules
modules_install:
make modules_install
depmod --quick
dkms_build:
$(DKMS) build -m $(E3_MODULE_NAME) -v $(E3_MODULE_VERSION)
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)
depmod
dkms_uninstall:
$(DKMS) uninstall -m $(E3_MODULE_NAME) -v $(E3_MODULE_VERSION)
depmod
clean:
make clean
.PHONY: autoconf build install uninstall modules modules_install modules_uninstall clean