summaryrefslogtreecommitdiff
path: root/rc/makefile.patch
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2022-05-13 11:35:31 -0400
committerShokara Kou <kou@13f0.net>2022-12-10 16:12:53 -0500
commit7f8d9adc5b1bc307309c22c6fdcde9b509b81062 (patch)
tree6d483b086c0ff91111bd0e8ef5326f035ec8bbac /rc/makefile.patch
parent720e44ce19bf3adb43d32727a53210efc21c5555 (diff)
add standalone mk and rc ports from plan9
Diffstat (limited to 'rc/makefile.patch')
-rw-r--r--rc/makefile.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/rc/makefile.patch b/rc/makefile.patch
new file mode 100644
index 0000000..ea3b66b
--- /dev/null
+++ b/rc/makefile.patch
@@ -0,0 +1,16 @@
1diff -ur a/Makefile b/Makefile
2--- a/Makefile 2022-05-10 23:02:55.921563498 -0400
3+++ b/Makefile 2022-05-10 23:03:49.446561763 -0400
4@@ -46,9 +46,9 @@
5 cmp -s x.tab.h y.tab.h || cp y.tab.h x.tab.h
6
7 install: all rcmain.unix rc.1
8- install -m 755 $(TARG) $(PREFIX)/bin
9- install -m 644 rcmain.unix $(PREFIX)/lib/rcmain
10- install -m 644 rc.1 $(PREFIX)/share/man/man1
11+ install -Dm755 -t $(DESTDIR)$(PREFIX)/bin $(TARG)
12+ install -Dm644 rcmain.unix $(DESTDIR)$(PREFIX)/lib/rcmain
13+ install -Dm644 -t $(DESTDIR)$(PREFIX)/share/man/man1 rc.1
14
15 %: %.c $(HFILES)
16 $(CC) $(ARCHS) -o $@ $< $(LFLAGS)