$NetBSD: patch-ab,v 1.2 2006/05/31 11:42:45 rillig Exp $ --- Makefile.orig 2004-12-05 00:49:30.000000000 +0100 +++ Makefile 2006-05-31 12:49:08.000000000 +0200 @@ -1,13 +1,16 @@ # where to install this program -PREFIX := /usr/local +mandir= man +sharedir= share/hot-babe +docdir= share/doc/hot-babe +pixmapdir= share/pixmaps + VERSION := 0.2.2 # optimization cflags CFLAGS += -O2 -Wall -g `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` +LIBS += `pkg-config gdk-2.0 gdk-pixbuf-2.0 --libs` DOC = ChangeLog NEWS TODO LICENSE CONTRIBUTORS copyright config.example @@ -22,18 +25,18 @@ clean: 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 + install -d $(DESTDIR)$(PREFIX)/${sharedir}/hb01 + install -m 0644 hb01/* $(DESTDIR)$(PREFIX)/${sharedir}/hb01 + install -d $(DESTDIR)$(PREFIX)/${docdir} + install -m 0644 $(DOC) $(DESTDIR)$(PREFIX)/${docdir} + install -d $(DESTDIR)$(PREFIX)/${mandir}/man1 + install -m 0644 hot-babe.1 $(DESTDIR)$(PREFIX)/${mandir}/man1 + install -d $(DESTDIR)$(PREFIX)/${pixmapdir} + install -m 0644 hot-babe.xpm $(DESTDIR)$(PREFIX)/${pixmapdir} uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/hot-babe - rm -rf $(DESTDIR)$(PREFIX)/share/hot-babe - rm -rf $(DESTDIR)$(PREFIX)/share/doc/hot-babe - rm -f $(DESTDIR)$(PREFIX)/share/man/man1/hot-babe.1 - rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/hot-babe.xpm + rm -rf $(DESTDIR)$(PREFIX)/${sharedir} + rm -rf $(DESTDIR)$(PREFIX)/${docdir} + rm -f $(DESTDIR)$(PREFIX)/${mandir}/man1/hot-babe.1 + rm -f $(DESTDIR)$(PREFIX)/${pixmapdir}/hot-babe.xpm