]> jfr.im git - solanum.git/blobdiff - doc/Makefile.in
sasl: reformat the other messages consistently
[solanum.git] / doc / Makefile.in
index 2c59ff4bd549fd890a60a471871b8480303d33dc..32a28322386b7221ca0efff8b310139d9c575cfa 100644 (file)
@@ -15,12 +15,14 @@ RM          = @RM@
 CP             = @CP@
 TOUCH          = @TOUCH@
 
+PROGRAM_PREFIX  = @PROGRAM_PREFIX@
+
 prefix         = @prefix@
 exec_prefix    = @exec_prefix@
 exec_suffix    = @exec_suffix@
 bindir         = @bindir@
 libexecdir     = @libexecdir@
-confdir                = @confdir@
+sysconfdir             = @sysconfdir@
 localstatedir  = @localstatedir@
 # Change this later! -- adrian
 moduledir      = @moduledir@
@@ -30,8 +32,7 @@ automoduledir = @moduledir@/autoload
 mandir          = @mandir@/man8
 MANPAGES        = ircd.8
 
-CONFS          = example.conf reference.conf
-DEFAULTCONFS   = kline.conf dline.conf xline.conf resv.conf
+CONFS          = ircd.conf.example reference.conf
 
 SSL_LIBS       = @SSL_LIBS@
 SSL_INCLUDES   = @SSL_INCLUDES@
@@ -40,11 +41,13 @@ IRCDLIBS    = @LIBS@ $(SSL_LIBS)
 
 INCLUDES       = -I../include $(SSL_INCLUDES)
 CPPFLAGS       = ${INCLUDES} @CPPFLAGS@
+
+all: build
  
 install-mkdirs:
-       -@if test ! -d $(DESTDIR)$(confdir); then \
-               echo "mkdir -p $(confdir)"; \
-               mkdir -p $(DESTDIR)$(confdir); \
+       -@if test ! -d $(DESTDIR)$(sysconfdir); then \
+               echo "mkdir -p $(sysconfdir)"; \
+               mkdir -p $(DESTDIR)$(sysconfdir); \
        fi
 
        -@if test ! -d $(DESTDIR)$(mandir); then \
@@ -55,32 +58,25 @@ install-mkdirs:
 install: install-mkdirs build
        @echo "ircd: installing example config files ($(CONFS))"
        @for i in $(CONFS); do \
-               if test -f $(DESTDIR)$(confdir)/$$i; then \
-                       $(MV) $(DESTDIR)$(confdir)/$$i $(DESTDIR)$(confdir)/$$i.old; \
-               fi; \
-               $(INSTALL_DATA) $$i $(DESTDIR)$(confdir); \
-       done
-
-       @for i in $(DEFAULTCONFS); do \
-               if test ! -f $(DESTDIR)$(confdir)/$$i; then \
-                       echo "ircd: creating config file ($$i)"; \
-                       ${TOUCH} $(DESTDIR)$(confdir)/$$i; \
+               if test -f $(DESTDIR)$(sysconfdir)/$$i; then \
+                       $(MV) $(DESTDIR)$(sysconfdir)/$$i $(DESTDIR)$(sysconfdir)/$$i.old; \
                fi; \
+               $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
        done
 
-       -@if test ! -f $(DESTDIR)$(confdir)/ircd.motd; then \
+       -@if test ! -f $(DESTDIR)$(sysconfdir)/ircd.motd; then \
                echo "ircd: installing motd file (ircd.motd)"; \
-               $(INSTALL_DATA) ircd.motd $(DESTDIR)$(confdir); \
+               $(INSTALL_DATA) ircd.motd $(DESTDIR)$(sysconfdir); \
        fi
 
-       -@if test -f $(DESTDIR)$(confdir)/links.txt; then \
-               $(RM) $(DESTDIR)$(confdir)/links.txt; \
+       -@if test -f $(DESTDIR)$(sysconfdir)/links.txt; then \
+               $(RM) $(DESTDIR)$(sysconfdir)/links.txt; \
        fi
 
        @echo "ircd: installing manpage"
        @for i in $(MANPAGES); do \
-               if test ! -f $(DESTDIR)$(mandir)/$$i; then \
-                       $(INSTALL_DATA) $$i $(DESTDIR)$(mandir); \
+               if test ! -f $(DESTDIR)$(mandir)/$(PROGRAM_PREFIX)$$i; then \
+                       $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/$(PROGRAM_PREFIX)$$i; \
                fi; \
        done