openbsd-ports/x11/sselp/patches/patch-Makefile
zinke 7abcab7d94 Import sselp-0.2.
Description:
Simple X selection printer. Prints the X selection to stdout. If there
is no X client owning the selection it just exits. Useful for scripts
where you can query the X selection without pressing mouse Button2 in
cumbersome ways.

Based roughly on a submission from Jan Klemkow.

ok sthen@
2012-07-10 12:24:54 +00:00

34 lines
861 B
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2012/07/10 12:24:54 zinke Exp $
--- Makefile.orig Tue Jul 10 13:49:30 2012
+++ Makefile Tue Jul 10 13:50:56 2012
@@ -14,14 +14,12 @@ options:
@echo "CC = ${CC}"
.c.o:
- @echo CC $<
- @${CC} -c ${CFLAGS} $<
+ ${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
sselp: ${OBJ}
- @echo CC -o $@
- @${CC} -o $@ ${OBJ} ${LDFLAGS}
+ ${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
@echo cleaning
@@ -36,10 +34,8 @@ dist: clean
@rm -rf sselp-${VERSION}
install: all
- @echo installing executable file to ${DESTDIR}${PREFIX}/bin
- @mkdir -p ${DESTDIR}${PREFIX}/bin
- @cp -f sselp ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/sselp
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+ ${BSD_INSTALL_PROGRAM} sselp ${DESTDIR}${PREFIX}/bin
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin