$OpenBSD: patch-Makefile,v 1.2 2004/12/25 22:29:25 naddy Exp $ --- Makefile.orig Sun Dec 5 00:49:30 2004 +++ Makefile Sat Dec 25 23:26:53 2004 @@ -1,12 +1,10 @@ # where to install this program -PREFIX := /usr/local VERSION := 0.2.2 # optimization cflags -CFLAGS += -O2 -Wall -g `pkg-config gdk-2.0 gdk-pixbuf-2.0 --cflags` -DPREFIX=\"$(PREFIX)\" -DVERSION=\"$(VERSION)\" +CFLAGS += `pkg-config gdk-2.0 gdk-pixbuf-2.0 --cflags` -DPREFIX=\"$(PREFIX)\" -DVERSION=\"$(VERSION)\" OBJS = hot-babe.o loader.o -CC = gcc LIBS = `pkg-config gdk-2.0 gdk-pixbuf-2.0 --libs` DOC = ChangeLog NEWS TODO LICENSE CONTRIBUTORS copyright config.example @@ -20,16 +18,16 @@ clean: rm -f hot-babe *.o install: - install -d $(DESTDIR)$(PREFIX)/bin - install -m 0755 hot-babe $(DESTDIR)$(PREFIX)/bin - install -d $(DESTDIR)$(PREFIX)/share/hot-babe/hb01 - install -m 0644 hb01/* $(DESTDIR)$(PREFIX)/share/hot-babe/hb01 - install -d $(DESTDIR)$(PREFIX)/share/doc/hot-babe - install -m 0644 $(DOC) $(DESTDIR)$(PREFIX)/share/doc/hot-babe - install -d $(DESTDIR)$(PREFIX)/share/man/man1 - install -m 0644 hot-babe.1 $(DESTDIR)$(PREFIX)/share/man/man1 - install -d $(DESTDIR)$(PREFIX)/share/pixmaps - install -m 0644 hot-babe.xpm $(DESTDIR)$(PREFIX)/share/pixmaps + $(BSD_INSTALL_PROGRAM_DIR) $(PREFIX)/bin + $(BSD_INSTALL_PROGRAM) hot-babe $(PREFIX)/bin + $(BSD_INSTALL_DATA_DIR) $(PREFIX)/share/hot-babe/hb01 + $(BSD_INSTALL_DATA) hb01/* $(PREFIX)/share/hot-babe/hb01 + $(BSD_INSTALL_DATA_DIR) $(PREFIX)/share/examples/hot-babe + $(BSD_INSTALL_DATA) config.example $(PREFIX)/share/examples/hot-babe + $(BSD_INSTALL_MAN_DIR) $(PREFIX)/man/man1 + $(BSD_INSTALL_MAN) hot-babe.1 $(PREFIX)/man/man1 + $(BSD_INSTALL_DATA_DIR) $(PREFIX)/share/pixmaps + $(BSD_INSTALL_DATA) hot-babe.xpm $(PREFIX)/share/pixmaps uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/hot-babe