61 lines
2.3 KiB
Makefile
61 lines
2.3 KiB
Makefile
SUBDIRS = scripts
|
|
TARGETS = $(OBJDIR)configure.1 $(OBJDIR)configure.html $(OBJDIR)project.conf.5 $(OBJDIR)project.conf.html
|
|
OBJDIR =
|
|
PREFIX = /usr/local
|
|
DESTDIR =
|
|
RM = rm -f
|
|
LN = ln -f
|
|
MKDIR = mkdir -m 0755 -p
|
|
INSTALL = install
|
|
|
|
|
|
all: subdirs $(TARGETS)
|
|
|
|
subdirs:
|
|
@for i in $(SUBDIRS); do (cd "$$i" && $(MAKE)) || exit; done
|
|
|
|
$(OBJDIR)configure.1: configure.xml
|
|
./docbook.sh -P "$(PREFIX)" -- "$(OBJDIR)configure.1"
|
|
|
|
$(OBJDIR)configure.html: configure.css.xml configure.xml manual.css.xml
|
|
./docbook.sh -P "$(PREFIX)" -- "$(OBJDIR)configure.html"
|
|
|
|
$(OBJDIR)project.conf.5: project.conf.xml
|
|
./docbook.sh -P "$(PREFIX)" -- "$(OBJDIR)project.conf.5"
|
|
|
|
$(OBJDIR)project.conf.html: project.conf.css.xml project.conf.xml manual.css.xml
|
|
./docbook.sh -P "$(PREFIX)" -- "$(OBJDIR)project.conf.html"
|
|
|
|
clean:
|
|
@for i in $(SUBDIRS); do (cd "$$i" && $(MAKE) clean) || exit; done
|
|
$(RM) -- $(configure.1_OBJS) $(configure.html_OBJS) $(project.conf.5_OBJS) $(project.conf.html_OBJS)
|
|
./docbook.sh -c -P "$(PREFIX)" -- "configure.1"
|
|
./docbook.sh -c -P "$(PREFIX)" -- "configure.html"
|
|
./docbook.sh -c -P "$(PREFIX)" -- "project.conf.5"
|
|
./docbook.sh -c -P "$(PREFIX)" -- "project.conf.html"
|
|
|
|
distclean:
|
|
@for i in $(SUBDIRS); do (cd "$$i" && $(MAKE) distclean) || exit; done
|
|
$(RM) -- $(configure.1_OBJS) $(configure.html_OBJS) $(project.conf.5_OBJS) $(project.conf.html_OBJS)
|
|
./docbook.sh -c -P "$(PREFIX)" -- "configure.1"
|
|
./docbook.sh -c -P "$(PREFIX)" -- "configure.html"
|
|
./docbook.sh -c -P "$(PREFIX)" -- "project.conf.5"
|
|
./docbook.sh -c -P "$(PREFIX)" -- "project.conf.html"
|
|
$(RM) -- $(TARGETS)
|
|
|
|
install: $(TARGETS)
|
|
@for i in $(SUBDIRS); do (cd "$$i" && $(MAKE) install) || exit; done
|
|
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)configure.1"
|
|
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)configure.html"
|
|
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)project.conf.5"
|
|
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)project.conf.html"
|
|
|
|
uninstall:
|
|
@for i in $(SUBDIRS); do (cd "$$i" && $(MAKE) uninstall) || exit; done
|
|
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "configure.1"
|
|
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "configure.html"
|
|
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "project.conf.5"
|
|
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "project.conf.html"
|
|
|
|
.PHONY: all subdirs clean distclean install uninstall
|