openbsd-ports/x11/i3/patches/patch-i3-input_Makefile

28 lines
832 B
Plaintext
Raw Normal View History

2011-12-01 11:00:01 -05:00
$OpenBSD: patch-i3-input_Makefile,v 1.3 2011/12/01 16:00:01 dcoppa Exp $
--- i3-input/Makefile.orig Wed Nov 30 16:30:45 2011
+++ i3-input/Makefile Wed Nov 30 16:31:17 2011
@@ -11,22 +11,19 @@ HEADERS=$(wildcard *.h)
# Depend on the specific file (.c for each .o) and on all headers
%.o: %.c ${HEADERS}
2011-12-01 11:00:01 -05:00
- echo "[i3-input] CC $<"
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
all: i3-input
2011-12-01 11:00:01 -05:00
i3-input: $(TOPDIR)/libi3/libi3.a ${FILES}
- echo "[i3-input] LINK i3-input"
$(CC) $(LDFLAGS) -o $@ $(filter-out libi3/libi3.a,$^) $(LIBS)
$(TOPDIR)/libi3/%.a: $(TOPDIR)/libi3/*.c
$(MAKE) -C $(TOPDIR)/libi3
install: all
2011-12-01 11:00:01 -05:00
- echo "[i3-input] INSTALL"
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
- $(INSTALL) -m 0755 i3-input $(DESTDIR)$(PREFIX)/bin/
+ ${INSTALL_PROGRAM} i3-input $(DESTDIR)$(PREFIX)/bin/
clean:
rm -f *.o