From f74139e8e838a3b3d68ba3ca5f203a24241cf489 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 06 Mar 2012 13:16:39 -0500 Subject: Translate from 'SRCS' to 'OBJS' in build system. --- diff --git a/lib/Makefile.in b/lib/Makefile.in index f0ecb1a..53dc1b6 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -27,20 +27,21 @@ LIBDIR = @libdir@ .SUFFIXES: -OBJS = controlfields architecture archive +SRCS = controlfields.sh architecture.sh archive.sh +OBJS = $(SRCS:.sh=) PACKAGE = @package@ VERSION = @version@ distdir = ../$(PACKAGE)-$(VERSION)/lib -distfiles = Makefile.in $(OBJS) +distfiles = Makefile.in $(SRCS) .PHONY: all all: $(OBJS) $(OBJS): @printf ' SED %s\n' '$@' - @sed -f ../sedscript $(SRCDIR)/lib/$@ > $@ + @sed -f ../sedscript $(SRCDIR)/lib/$*.sh > $@ .PHONY: clean clean: diff --git a/man/Makefile.in b/man/Makefile.in index c8141bb..3868c97 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -27,22 +27,24 @@ MANDIR = @mandir@ .SUFFIXES: -OBJS = opkbuild.1 oh-checkbuilddeps.1 oh-applypatches.1 oh-copyconfig.1 \ - oh-strip.1 oh-installfiles.1 oh-installdocs.1 oh-gencontrol.1 \ - oh-buildopk.1 +SRCS = opkbuild.1.in \ + oh-checkbuilddeps.1.in oh-applypatches.1.in oh-copyconfig.1.in \ + oh-strip.1.in oh-installfiles.1.in oh-installdocs.1.in \ + oh-gencontrol.1.in oh-buildopk.1.in +OBJS = $(SRCS:.in=) PACKAGE = @package@ VERSION = @version@ distdir = ../$(PACKAGE)-$(VERSION)/man -distfiles = Makefile.in $(OBJS) +distfiles = Makefile.in $(SRCS) .PHONY: all all: $(OBJS) $(OBJS): @printf ' CP man/%s\n' '$@' - @cp $(SRCDIR)/man/$@ $@ + @cp $(SRCDIR)/man/$*.in $@ .PHONY: clean clean: diff --git a/src/Makefile.in b/src/Makefile.in index 62eaded..ff338da 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -27,22 +27,24 @@ BINDIR = @bindir@ .SUFFIXES: -OBJS = opkbuild oh-checkbuilddeps oh-applypatches oh-copyconfig \ - oh-strip oh-installfiles oh-installdocs oh-gencontrol \ - oh-buildopk +SRCS = opkbuild.sh \ + oh-checkbuilddeps.sh oh-applypatches.sh oh-copyconfig.sh \ + oh-strip.sh oh-installfiles.sh oh-installdocs.sh \ + oh-gencontrol.sh oh-buildopk.sh +OBJS = $(SRCS:.sh=) PACKAGE = @package@ VERSION = @version@ distdir = ../$(PACKAGE)-$(VERSION)/src -distfiles = Makefile.in $(OBJS) +distfiles = Makefile.in $(SRCS) .PHONY: all all: $(OBJS) $(OBJS): @printf ' SED %s\n' '$@' - @sed -f ../sedscript $(SRCDIR)/src/$@ > $@ + @sed -f ../sedscript $(SRCDIR)/src/$*.sh > $@ .PHONY: clean clean: -- cgit v0.9.1