-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
53 lines (47 loc) · 1.71 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
50
51
52
53
#
# Makefile for lunar-tools - a collection of lunar-related shell tools
#
# versioning scheme: since this is mostly a linear process if incremental
# but we do not update that often we use year.number as version number
# i.e. 2004.9 2004.10 2004.11 ...
VERSION = 2024.3
bin_PROGS = prog/run-parts
sbin_PROGS = prog/lids prog/luser prog/lnet prog/lservices \
prog/lmodules prog/clad prog/ltime prog/installkernel
lnet_LIBS = lib/lnet/bootstrap \
lib/lnet/config_file.lnet.sh \
lib/lnet/device_config.lnet.sh \
lib/lnet/devices.lnet.sh \
lib/lnet/dialog.lnet.sh \
lib/lnet/menus.lnet.sh \
lib/lnet/netmasks.lnet.sh \
lib/lnet/wifi.lnet.sh
DOCS = README COPYING
MANPAGES = $(shell ls -1 man/*)
lnet_LIBS_dir = /var/lib/lunar/functions/lnet
all:
.PHONY:
install: .PHONY
install -d $(DESTDIR)$(lnet_LIBS_dir)
for LIB in $(lnet_LIBS) ; do \
install -m644 $${LIB} $(DESTDIR)$(lnet_LIBS_dir) ; \
done
install -d $(DESTDIR)/usr/bin
for PROGRAM in ${bin_PROGS} ; do \
install -m755 $${PROGRAM} $(DESTDIR)/usr/bin/ ; \
done
install -d $(DESTDIR)/usr/sbin
for PROGRAM in ${sbin_PROGS} ; do \
install -m755 $${PROGRAM} $(DESTDIR)/usr/sbin/ ; \
done
for MANPAGE in ${MANPAGES} ; do \
EXT=`echo "$${MANPAGE:(($${#MANPAGE}-1)):1}"` ; \
install -d $(DESTDIR)/usr/share/man/man$$EXT ; \
install -m644 $${MANPAGE} $(DESTDIR)/usr/share/man/man$$EXT/ ; \
done
install -d $(DESTDIR)/usr/share/doc/lunar-tools
for DOC in ${DOCS} ; do \
install -m644 $${DOC} $(DESTDIR)/usr/share/doc/lunar-tools/ ; \
done
dist:
git archive --format=tar --prefix=lunar-tools-$(VERSION)/ lunar-tools-$(VERSION) | bzip2 > lunar-tools-$(VERSION).tar.bz2