diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 92 |
1 files changed, 28 insertions, 64 deletions
diff --git a/Makefile.in b/Makefile.in index 3b4a5d8..af9b635 100644 --- a/Makefile.in +++ b/Makefile.in @@ -19,90 +19,54 @@ SHELL = @shell@ INSTALL = @install@ +MAKE = @make@ SRCDIR = @srcdir@ PREFIX = @prefix@ BINDIR = @bindir@ LIBDIR = @libdir@ MANDIR = @mandir@ +MAKE = @make@ .SUFFIXES: -OBJS = lib/controlfields src/opkbuild \ - src/oh-strip src/oh-installfiles src/oh-gencontrol src/oh-buildopk \ - .PHONY: all -all: $(OBJS) - -src lib: - @printf ' Making directories...\n' - @mkdir src lib +all: sedscript + @printf 'Making executable files...\n' + @$(MAKE) -f src/Makefile all + @printf 'Making library files...\n' + @$(MAKE) -f lib/Makefile all + @printf 'Making manual pages...\n' + @$(MAKE) -f man/Makefile all sedscript: - @printf ' Writing sed script...\n' + @printf 'Writing sed script...\n' @echo 's&@@BINDIR@@&$(BINDIR)&' > sedscript @echo 's&@@LIBDIR@@&$(LIBDIR)&' >> sedscript -$(OBJS): src lib sedscript - @printf ' SED $@\n' - @sed -f sedscript $(SRCDIR)/$@ > $@ - .PHONY: clean clean: - rm -Rf src lib sedscript + @printf 'Cleaning executable files...\n' + @$(MAKE) -f src/Makefile clean + @printf 'Cleaning library files...\n' + @$(MAKE) -f lib/Makefile clean + @printf 'Cleaning manual pages...\n' + @$(MAKE) -f man/Makefile clean .PHONY: install install: all - @printf ' INSTALL src/opkbuild\n' - @$(INSTALL) -D "src/opkbuild" "$(DESTDIR)/$(BINDIR)/opkbuild" - @printf ' INSTALL src/oh-strip\n' - @$(INSTALL) -D "src/oh-strip" "$(DESTDIR)/$(BINDIR)/oh-strip" - @printf ' INSTALL src/oh-installfiles\n' - @$(INSTALL) -D "src/oh-installfiles" "$(DESTDIR)/$(BINDIR)/oh-installfiles" - @printf ' INSTALL src/oh-gencontrol\n' - @$(INSTALL) -D "src/oh-gencontrol" "$(DESTDIR)/$(BINDIR)/oh-gencontrol" - @printf ' INSTALL src/oh-buildopk\n' - @$(INSTALL) -D "src/oh-buildopk" "$(DESTDIR)/$(BINDIR)/oh-buildopk" - @printf ' INSTALL lib/controlfields\n' - @$(INSTALL) -D "lib/controlfields" \ - "$(DESTDIR)/$(LIBDIR)/opkhelper/controlfields" - @printf ' INSTALL man/opkbuild.1\n' - @$(INSTALL) -D "$(SRCDIR)/man/opkbuild.1" \ - "$(DESTDIR)/$(MANDIR)/man1/opkbuild.1" - @printf ' INSTALL man/oh-strip.1\n' - @$(INSTALL) -D "$(SRCDIR)/man/oh-strip.1" \ - "$(DESTDIR)/$(MANDIR)/man1/oh-strip.1" - @printf ' INSTALL man/oh-installfiles.1\n' - @$(INSTALL) -D "$(SRCDIR)/man/oh-installfiles.1" \ - "$(DESTDIR)/$(MANDIR)/man1/oh-installfiles.1" - @printf ' INSTALL man/oh-gencontrol.1\n' - @$(INSTALL) -D "$(SRCDIR)/man/oh-gencontrol.1" \ - "$(DESTDIR)/$(MANDIR)/man1/oh-gencontrol.1" - @printf ' INSTALL man/oh-buildopk.1\n' - @$(INSTALL) -D "$(SRCDIR)/man/oh-buildopk.1" \ - "$(DESTDIR)/$(MANDIR)/man1/oh-buildopk.1" + @printf 'Installing executable files...\n' + @$(MAKE) -f src/Makefile install + @printf 'Installing libary files...\n' + @$(MAKE) -f lib/Makefile install + @printf 'Installing manual pages...\n' + @$(MAKE) -f man/Makefile install .PHONY: uninstall uninstall: - @printf ' RM opkbuild\n' - @rm -f "$(DESTDIR)/$(BINDIR)/opkbuild" - @printf ' RM oh-strip\n' - @rm -f "$(DESTDIR)/$(BINDIR)/oh-strip" - @printf ' RM oh-installfiles\n' - @rm -f "$(DESTDIR)/$(BINDIR)/oh-installfiles" - @printf ' RM oh-gencontrol\n' - @rm -f "$(DESTDIR)/$(BINDIR)/oh-gencontrol" - @printf ' RM oh-buildopk\n' - @rm -f "$(DESTDIR)/$(BINDIR)/oh-buildopk" - @printf ' RM controlfields\n' - @rm -f "$(DESTDIR)/$(LIBDIR)/opkhelper/controlfields" - @printf ' RM opkbuild.1\n' - @rm -f "$(DESTDIR)/$(MANDIR)/man1/opkbuild.1" - @printf ' RM oh-strip.1\n' - @rm -f "$(DESTDIR)/$(MANDIR)/man1/oh-strip.1" - @printf ' RM oh-installfiles.1\n' - @rm -f "$(DESTDIR)/$(MANDIR)/man1/oh-installfiles.1" - @printf ' RM oh-gencontrol.1\n' - @rm -f "$(DESTDIR)/$(MANDIR)/man1/oh-gencontrol.1" - @printf ' RM oh-buildopk.1\n' - @rm -f "$(DESTDIR)/$(MANDIR)/man1/oh-buildopk.1" + @printf 'Uninstalling executable files...\n' + @$(MAKE) -f src/Makefile uninstall + @printf 'Uninstalling library files...\n' + @$(MAKE) -f lib/Makefile uninstall + @printf 'Uninstalling manual pages...\n' + @$(MAKE) -f man/Makefile uninstall |