$NetBSD: patch-aa,v 1.4 2002/01/31 04:08:00 jlam Exp $ --- Makefile.orig Sat Jul 1 11:48:50 2000 +++ Makefile @@ -10,9 +10,9 @@ SUBDIRS=libtu LIBS += -L./libtu -ltu -lm $(X11_LIBS) -lX11 INCLUDES += -I./libtu/include $(X11_INCLUDES) -DEFINES += -DPREFIX=\"$(PREFIX)\" +DEFINES += -DSYSCONFDIR=\"$(SYSCONFDIR)\" CFLAGS += $(XOPEN_SOURCE) -TO_REALCLEAN += pwm.1x +TO_REALCLEAN += pwm.1 OBJS= main.o draw.o font.o frame.o event.o clientwin.o thing.o \ property.o pointer.o key.o moveres.o cursor.o function.o \ @@ -21,9 +21,9 @@ binding.o winlist.o mwmhints.o signal.o winprops.o BINDIR=$(PREFIX)/bin -ETCDIR=$(PREFIX)/etc +ETCDIR=$(PREFIX)/share/examples MANDIR=$(PREFIX)/man/man1 -DOCDIR=$(PREFIX)/doc +DOCDIR=$(PREFIX)/share/doc TARGETS=pwm @@ -33,11 +33,11 @@ ###################################### -pwm: $(OBJS) pwm.1x +pwm: $(OBJS) pwm.1 $(CC) $(OBJS) $(LDFLAGS) -o $@ -pwm.1x: pwm.1x.in - sed 's#PREFIX#$(PREFIX)#g' pwm.1x.in > pwm.1x +pwm.1: pwm.1x.in + sed 's#PREFIX#$(PREFIX)#g' pwm.1x.in > pwm.1 _install: $(INSTALL) -d $(BINDIR) @@ -45,7 +45,7 @@ $(STRIP) $(BINDIR)/pwm $(INSTALL) -d $(MANDIR) - $(INSTALL) -m $(DATA_MODE) pwm.1x $(MANDIR) + $(INSTALL) -m $(DATA_MODE) pwm.1 $(MANDIR) $(INSTALL) -d $(DOCDIR) $(INSTALL) -d $(DOCDIR)/pwm