From d27bcf8dc05090c60a30c926a6f97a26ed60d498 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 02 Aug 2012 07:03:56 -0400 Subject: Update lib and man input makefiles. --- (limited to 'lib') diff --git a/lib/Makefile.in b/lib/Makefile.in index ecf1e3a..aa7cacd 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -17,55 +17,59 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -SHELL = @shell@ -INSTALL = @install@ -MAKE = @make@ +package_name = @package_name@ +package_version= @package_version@ + +srcdir = @srcdir@ +prefix = @prefix@ +libdir = @libdir@ +datadir = @datadir@ +localedir = @localedir@ -SRCDIR = @srcdir@ -PREFIX = @prefix@ -LIBDIR = @libdir@ +sed_script = s&@@PACKAGE_NAME@@&$(package_name)&;\ + s&@@PACKAGE_VERSION@@&$(package_version)&;\ + s&@@LIBDIR@@&$(libdir)&;\ + s&@@LOCALEDIR@@&$(localedir)&; + +INSTALL = @install@ .SUFFIXES: .SUFFIXES: .sh -SRCS = controlfields.sh architecture.sh archive.sh messages.sh changelog.sh +SRCS = control.sh \ + changelog.sh \ + locale.sh \ + messages.sh \ + util.sh OBJS = $(SRCS:.sh=) -PACKAGE = @package@ -VERSION = @version@ - -distdir = ../$(PACKAGE)-$(VERSION)/lib +distdir = ../$(package_name)-$(package_version)/lib distfiles = Makefile.in $(SRCS) -.PHONY: all all: $(OBJS) $(OBJS): @printf ' SED %s\n' '$@' - @sed -f ../sedscript $(SRCDIR)/lib/$@.sh > $@ + @sed '$(sed_script)' '$(srcdir)/lib/$@.sh' >'$@' -.PHONY: clean clean: @for obj in $(OBJS); do \ printf ' RM lib/%s\n' "$${obj}"; \ - rm -f $${obj}; \ + rm -f "$${obj}"; \ done -.PHONY: install install: all @for obj in $(OBJS); do \ printf ' INSTALL lib/%s\n' "$${obj}"; \ - $(INSTALL) -D $${obj} "$(DESTDIR)/$(LIBDIR)/opkhelper/$${obj}"; \ + $(INSTALL) -D "$${obj}" "$(DESTDIR)/$(libdir)/$${obj}"; \ done -.PHONY: uninstall uninstall: @for obj in $(OBJS); do \ printf ' RM %s\n' "$${obj}"; \ rm -f "$(DESTDIR)/$(LIBDIR)/opkhelper/$${obj}"; \ done -.PHONY: distdir -distdir: - @[ -d '$(distdir)' ] || mkdir '$(distdir)' - @cp -pR $(distfiles) $(distdir) +$(distdir): + @mkdir -p '$(distdir)' + @cp -pR $(distfiles) '$(distdir)' -- cgit v0.9.1