blob: ea68760fdd6f3eaf66d9b59d48e8a87cdbc8b43b (
plain) (
blame)
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
|
--- Makefile.sun.orig Fri Oct 8 13:00:00 1993
+++ Makefile.sun Wed May 8 17:05:41 2002
@@ -1,5 +1,9 @@
OBJS = btoa.o atob.o repair.o
+DESTDIR ?= /usr/local
+
+all: btoa
+
btoa: $(OBJS)
cc -O $(OBJS) -o btoa
@@ -11,3 +15,15 @@
repair.o: repair.c btoa.h
cc -c -O repair.c
+
+install: btoa btoa.1
+ -@mkdir -p $(DESTDIR)/bin
+ install -c -s -m 755 btoa $(DESTDIR)/bin/btoa
+ rm -f $(DESTDIR)/bin/atob
+ ln $(DESTDIR)/bin/btoa $(DESTDIR)/bin/atob
+ -@mkdir -p $(DESTDIR)/man/man1
+ install -c -m 644 btoa.1 $(DESTDIR)/man/man1/btoa.1
+ strip $(DESTDIR)/bin/btoa
+
+clean:
+ rm -f btoa $(OBJS)
|