-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (48 loc) · 1.89 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
54
55
# vim: ts=8 sw=8 noet cc=80
# SPDX-License-Identifier: GPL-3.0-or-later
#
# Portable package manager made in POSIX shell script
# Copyright (C) 2023 astral
#
# This file is part of ppmpss.
#
# ppmpss 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 3 of the License, or (at your option) any later
# version.
#
# ppmpss 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
# ppmpss. If not, see <https://www.gnu.org/licenses/>.
.POSIX:
include config.mk
all: ppmpss
ppmpss:
clean:
@rm -f ppmpss
install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@cp ppmpss $(DESTDIR)$(PREFIX)/bin
@chmod 755 $(DESTDIR)$(PREFIX)/bin/ppmpss
@mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
@cp ppmpss.1 $(DESTDIR)$(PREFIX)/share/man/man1
@chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss.1
@cp ppmpss-pkg.1 $(DESTDIR)$(PREFIX)/share/man/man1
@chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss-pkg.1
@cp ppmpss-em.1 $(DESTDIR)$(PREFIX)/share/man/man1
@chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss-em.1
@cp ppmpss-rm.1 $(DESTDIR)$(PREFIX)/share/man/man1
@chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss-rm.1
@cp ppmpss-chroot.1 $(DESTDIR)$(PREFIX)/share/man/man1
@chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss-chroot.1
uninstall:
@rm -f $(DESTDIR)$(PREFIX)/bin/ppmpss
@rm -f $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss.1
@rm -f $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss-pkg.1
@rm -f $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss-em.1
@rm -f $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss-rm.1
@rm -f $(DESTDIR)$(PREFIX)/share/man/man1/ppmpss-chroot.1