38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.3 2015/04/16 10:27:26 jung Exp $
|
|
--- Makefile.orig Sun Nov 16 21:38:30 2014
|
|
+++ Makefile Wed Apr 15 23:09:54 2015
|
|
@@ -19,7 +19,7 @@ $(OBJ): Makefile
|
|
|
|
-include $(DEP)
|
|
|
|
-%.o: %.c
|
|
+.c.o:
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -MMD -MP -c -o $@ $<
|
|
|
|
config.h:
|
|
@@ -32,15 +32,15 @@ clean:
|
|
rm -f $(OBJ) $(DEP) sxiv
|
|
|
|
install: all
|
|
- mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
- cp sxiv $(DESTDIR)$(PREFIX)/bin/
|
|
- chmod 755 $(DESTDIR)$(PREFIX)/bin/sxiv
|
|
- mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
|
- sed "s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" sxiv.1 > $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
|
|
- chmod 644 $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
|
|
- mkdir -p $(DESTDIR)$(PREFIX)/share/sxiv/exec
|
|
- cp exec/* $(DESTDIR)$(PREFIX)/share/sxiv/exec/
|
|
- chmod 755 $(DESTDIR)$(PREFIX)/share/sxiv/exec/*
|
|
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
|
|
+ ${BSD_INSTALL_PROGRAM} sxiv ${DESTDIR}${PREFIX}/bin
|
|
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
|
|
+ sed "s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" sxiv.1 > sxiv.1.tmp
|
|
+ mv sxiv.1.tmp sxiv.1
|
|
+ ${BSD_INSTALL_MAN} sxiv.1 ${DESTDIR}${MANPREFIX}/man1
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/sxiv
|
|
+ ${BSD_INSTALL_DATA} exec/image-info ${DESTDIR}${PREFIX}/share/examples/sxiv
|
|
+ ${BSD_INSTALL_DATA} exec/key-handler ${DESTDIR}${PREFIX}/share/examples/sxiv
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/sxiv
|