21211ccaee
installing files into them.
47 lines
1.6 KiB
Text
47 lines
1.6 KiB
Text
$NetBSD: patch-aa,v 1.6 2003/08/12 06:44:37 jlam Exp $
|
|
|
|
--- Makefile.orig Wed May 28 14:58:16 2003
|
|
+++ Makefile Wed Jul 16 03:44:16 2003
|
|
@@ -32,32 +32,18 @@
|
|
$(CC) $(OBJS) $(LDFLAGS) -o $@
|
|
|
|
pwm.1x: pwm.1x.in
|
|
- sed 's#PREFIX#$(PREFIX)#g' pwm.1x.in > pwm.1x
|
|
+ sed -e 's#PREFIX#$(PREFIX)#g' -e 's#PKG_SYSCONFDIR#$(PKG_SYSCONFDIR)#g' pwm.1x.in > pwm.1x
|
|
|
|
_install:
|
|
- $(INSTALLDIR) $(BINDIR)
|
|
- $(INSTALL) -m $(BIN_MODE) pwm $(BINDIR)
|
|
- $(STRIP) $(BINDIR)/pwm
|
|
-
|
|
- $(INSTALLDIR) $(MANDIR)/man1
|
|
- $(INSTALL) -m $(DATA_MODE) pwm.1x $(MANDIR)/man1
|
|
-
|
|
- $(INSTALLDIR) $(DOCDIR)
|
|
- $(INSTALLDIR) $(DOCDIR)/pwm
|
|
- $(INSTALL) -m $(DATA_MODE) config.txt $(DOCDIR)/pwm
|
|
- $(INSTALL) -m $(DATA_MODE) LICENSE $(DOCDIR)/pwm
|
|
-
|
|
- $(INSTALLDIR) $(ETCDIR)
|
|
- $(INSTALLDIR) $(ETCDIR)/pwm
|
|
- for i in etc/pwm/*.conf; do \
|
|
- $(INSTALL) -m $(DATA_MODE) $$i $(ETCDIR)/pwm; \
|
|
- done
|
|
- @ if test -f $(ETCDIR)/pwm/pwm.conf ; then \
|
|
- echo "$(ETCDIR)/pwm/pwm.conf already exists. Not installing one."; \
|
|
- else \
|
|
- echo "Installing sample configuration file $(ETCDIR)/pwm/pwm.conf"; \
|
|
- $(INSTALL) -m $(DATA_MODE) etc/pwm/sample.conf $(ETCDIR)/pwm/pwm.conf; \
|
|
- fi
|
|
+ $(BSD_INSTALL_PROGRAM_DIR) $(BINDIR)
|
|
+ $(BSD_INSTALL_PROGRAM) pwm $(BINDIR)
|
|
+ $(BSD_INSTALL_MAN_DIR) $(MANDIR)/man1
|
|
+ $(BSD_INSTALL_MAN) pwm.1x $(MANDIR)/man1/pwm.1
|
|
+ $(BSD_INSTALL_DATA_DIR) $(DOCDIR)/pwm
|
|
+ $(BSD_INSTALL_DATA) config.txt LICENSE $(DOCDIR)/pwm
|
|
+ $(BSD_INSTALL_DATA_DIR) $(ETCDIR)/pwm
|
|
+ $(BSD_INSTALL_DATA) etc/pwm/*-*.conf $(ETCDIR)/pwm
|
|
+ $(BSD_INSTALL_DATA) etc/pwm/sample.conf $(ETCDIR)/pwm/pwm.conf.default
|
|
|
|
|
|
# Disclaimer: I don't have either Gnome or KDE.
|