-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 786 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 786 Bytes
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
.POSIX:
include config.mk
all: lsw
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp -f lsw lswmenu ${DESTDIR}${PREFIX}/bin/
cp -f lsw.1 ${DESTDIR}${MANPREFIX}/man1/
ln -sf lsw.1 ${DESTDIR}${MANPREFIX}/man1/lswmenu.1
chmod 0755 ${DESTDIR}${PREFIX}/bin/lsw
chmod 0755 ${DESTDIR}${PREFIX}/bin/lswmenu
chmod 0644 ${DESTDIR}${MANPREFIX}/man1/lsw.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/lsw
rm -f ${DESTDIR}${PREFIX}/bin/lswmenu
rm -f ${DESTDIR}${MANPREFIX}/man1/lsw.1
rm -f ${DESTDIR}${MANPREFIX}/man1/lswmenu.1
clean:
rm -f lsw
rm -f ${DIST}.tar.gz
release:
git tag -a v${VERSION} -m v${VERSION}
dist: clean
git archive --format=tar.gz -o ${DIST}.tar.gz --prefix=${DIST}/ HEAD
.PHONY: all install uninstall clean release dist