summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-03-06 13:16:39 (EST)
committer P. J. McDermott <pjm@nac.net>2012-03-06 13:16:39 (EST)
commitf74139e8e838a3b3d68ba3ca5f203a24241cf489 (patch)
tree4fe11f696e87f23ff89dba8c286baa45b9ee3181
parentdb312b19138cb589ded82f65b07179a63c9e00cd (diff)
Translate from 'SRCS' to 'OBJS' in build system.
-rw-r--r--lib/Makefile.in7
-rw-r--r--man/Makefile.in12
-rw-r--r--src/Makefile.in12
3 files changed, 18 insertions, 13 deletions
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: