2009-05-31 16:00:22 -04:00
|
|
|
$OpenBSD: patch-Makefile,v 1.3 2009/05/31 20:00:22 jim Exp $
|
|
|
|
--- Makefile.orig Tue Jul 29 14:22:46 2008
|
|
|
|
+++ Makefile Tue May 19 16:02:24 2009
|
|
|
|
@@ -15,14 +15,12 @@ options:
|
|
|
|
@echo "CC = ${CC}"
|
2008-06-02 16:09:53 -04:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
- @echo CC $<
|
|
|
|
- @${CC} -c ${CFLAGS} $<
|
|
|
|
+ ${CC} -c ${CFLAGS} $<
|
|
|
|
|
|
|
|
${OBJ}: config.mk
|
|
|
|
|
|
|
|
slock: ${OBJ}
|
2009-05-31 16:00:22 -04:00
|
|
|
- @echo CC -o $@
|
|
|
|
- @${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
|
|
+ ${CC} -o $@ ${OBJ} ${LDFLAGS}
|
2008-06-02 16:09:53 -04:00
|
|
|
|
|
|
|
clean:
|
2009-05-31 16:00:22 -04:00
|
|
|
@echo cleaning
|
|
|
|
@@ -38,10 +36,7 @@ dist: clean
|
2008-06-02 16:09:53 -04:00
|
|
|
|
2008-01-26 13:48:19 -05:00
|
|
|
install: all
|
|
|
|
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
|
2008-06-02 16:09:53 -04:00
|
|
|
- @mkdir -p ${DESTDIR}${PREFIX}/bin
|
2008-01-26 13:48:19 -05:00
|
|
|
- @cp -f slock ${DESTDIR}${PREFIX}/bin
|
|
|
|
- @chmod 755 ${DESTDIR}${PREFIX}/bin/slock
|
|
|
|
- @chmod u+s ${DESTDIR}${PREFIX}/bin/slock
|
2008-06-02 16:09:53 -04:00
|
|
|
+ @${BSD_INSTALL_PROGRAM} slock ${DESTDIR}${PREFIX}/bin
|
2008-01-26 13:48:19 -05:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
|