summaryrefslogtreecommitdiff
path: root/misc/since/patches/patch-Makefile
blob: 7ca28235442ea47083bb43cc08e5d6f0ce6ca3c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-Makefile,v 1.1.1.1 2012/08/17 23:38:11 seb Exp $

pkgsrc friendly Makefile

--- Makefile.orig	2010-07-10 12:57:32.000000000 +0000
+++ Makefile
@@ -15,11 +15,13 @@ RM = rm -f
 INSTALL = install -D
 
 $(NAME): $(NAME).c
-	$(CC) $(CFLAGS) -o $@ $^
+	$(CC) $(CFLAGS) -o $@ $<
 
 install: $(NAME)
-	$(INSTALL) $(NAME) $(prefix)/bin/$(NAME)
-	$(INSTALL) $(NAME).1 $(prefix)/share/man/man1/$(NAME).1
+	$(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(PREFIX)/bin
+	$(BSD_INSTALL_PROGRAM) $(NAME) $(DESTDIR)$(PREFIX)/bin/$(NAME)
+	$(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
+	$(BSD_INSTALL_MAN) $(NAME).1 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1/$(NAME).1
 
 clean: 
 	$(RM) $(NAME) core *.o