diff options
author | P. J. McDermott <pjm@nac.net> | 2012-01-21 11:42:42 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-01-21 11:42:42 (EST) |
commit | d31b721e987fe7d53cef087ed2f002b65a6a759e (patch) | |
tree | 36be42a90303666185ac0110d18e7627120b1bce /Makefile.in | |
parent | 0417faa1797e2cbe1793386bfc159391f919357d (diff) |
Modify build system for "compilation" and libs.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 46 |
1 files changed, 36 insertions, 10 deletions
diff --git a/Makefile.in b/Makefile.in index f91e7ea..a2a88bd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -18,38 +18,64 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. SHELL = @shell@ - INSTALL = @install@ SRCDIR = @srcdir@ PREFIX = @prefix@ BINDIR = @bindir@ +LIBDIR = @libdir@ MANDIR = @mandir@ +.SUFFIXES: + +OBJS = lib/controlfields src/opkbuild \ + src/oh-strip src/oh-installfiles src/oh-gencontrol src/oh-buildopk \ + .PHONY: all -all: +all: $(OBJS) + +src lib: + @printf ' Making directories...\n' + @mkdir src lib + +sedscript: + @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 .PHONY: install install: all @printf ' INSTALL src/opkbuild\n' - @$(INSTALL) -D "$(SRCDIR)/src/opkbuild" "$(DESTDIR)/$(BINDIR)/opkbuild" + @$(INSTALL) -D "src/opkbuild" "$(DESTDIR)/$(BINDIR)/opkbuild" @printf ' INSTALL src/oh-strip\n' - @$(INSTALL) -D "$(SRCDIR)/src/oh-strip" "$(DESTDIR)/$(BINDIR)/oh-strip" + @$(INSTALL) -D "src/oh-strip" "$(DESTDIR)/$(BINDIR)/oh-strip" @printf ' INSTALL src/oh-installfiles\n' - @$(INSTALL) -D "$(SRCDIR)/src/oh-installfiles" "$(DESTDIR)/$(BINDIR)/oh-installfiles" + @$(INSTALL) -D "src/oh-installfiles" "$(DESTDIR)/$(BINDIR)/oh-installfiles" @printf ' INSTALL src/oh-buildopk\n' - @$(INSTALL) -D "$(SRCDIR)/src/oh-buildopk" "$(DESTDIR)/$(BINDIR)/oh-buildopk" + @$(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" + @$(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" + @$(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" + @$(INSTALL) -D "$(SRCDIR)/man/oh-installfiles.1" \ + "$(DESTDIR)/$(MANDIR)/man1/oh-installfiles.1" @printf ' INSTALL man/oh-buildopk.1\n' - @$(INSTALL) -D "$(SRCDIR)/man/oh-buildopk.1" "$(DESTDIR)/$(MANDIR)/man1/oh-buildopk.1" + @$(INSTALL) -D "$(SRCDIR)/man/oh-buildopk.1" \ + "$(DESTDIR)/$(MANDIR)/man1/oh-buildopk.1" .PHONY: uninstall uninstall: |