-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
30 lines (27 loc) · 963 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
################################################################################
# Makefile for interaptive.sh
#
# Technically, no 'making' occurs, since it's just a shell script, but
# let us not quibble over trivialities such as these.
################################################################################
PREFIX=/usr
SRC=src
SRCFILE=interaptive.sh
SRCFILE_CLASSIC=interaptive-classic.sh
DESTFILE=interaptive
DESTFILE_CLASSIC=interaptive-classic
DATAPATH=$(PREFIX)/share/interaptive
install:
$(info )
$(info *** INSTALL ***)
@install -D -m 0755 $(SRC)/$(SRCFILE) $(PREFIX)/bin/$(DESTFILE)
@install -D -m 0755 $(SRC)/$(SRCFILE_CLASSIC) $(PREFIX)/bin/$(DESTFILE_CLASSIC)
@mkdir -vp $(DATAPATH)
@install -v -D -m 0644 LICENSE $(DATAPATH)/LICENSE
@install -v -D -m 0644 README.md $(DATAPATH)/README.md
uninstall:
$(info )
$(info *** UNINSTALL ***)
rm -f $(PREFIX)/bin/$(DESTFILE)
rm -f $(PREFIX)/bin/$(DESTFILE_CLASSIC)
rm -rf $(DATAPATH)