summaryrefslogtreecommitdiff
blob: b370a7c372335e8517699ddfbcfcb8ce352a3563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- sparc32-1.1/Makefile.fhs	Wed Jun 14 17:33:36 2000
+++ sparc32-1.1/Makefile	Wed Jun 14 17:37:58 2000
@@ -1,8 +1,14 @@
+prefix = /usr
+bindir = ${prefix}/bin
+mandir = ${prefix}/man
+
 sparc32: sparc32.c
 	$(CC) -O2 -o sparc32 sparc32.c
 
 install:
-	install -s -m 0755 sparc32 $(PREFIX)/usr/bin
-	ln -f $(PREFIX)/usr/bin/sparc32 $(PREFIX)/usr/bin/sparc64
-	install -m 0644 sparc32.8 $(PREFIX)/usr/man/man8
-	install -m 0644 sparc64.8 $(PREFIX)/usr/man/man8
+	mkdir -p $(DESTDIR)$(bindir)
+	install -s -m 0755 sparc32 $(DESTDIR)$(bindir)/
+	ln -f $(PREFIX)$(bindir)/sparc32 $(DESTDIR)$(bindir)/sparc64
+	mkdir -p $(DESTDIR)$(mandir)/man8
+	install -m 0644 sparc32.8 $(DESTDIR)$(mandir)/man8/
+	install -m 0644 sparc64.8 $(DESTDIR)$(mandir)/man8/