15 |
|
|
16 |
all-am: $(TEMPLATES) $(MTEMPLATES) build.sh.in |
all-am: $(TEMPLATES) $(MTEMPLATES) build.sh.in |
17 |
|
|
|
# We need this to ensure that README and build.sh.in are created on time to |
|
|
# avoid errors by automake. |
|
|
# |
|
|
#Makefile.in: README build.sh.in |
|
|
|
|
18 |
# General rule for turning a .template into a regular file. |
# General rule for turning a .template into a regular file. |
19 |
# |
# |
20 |
$(TEMPLATES) : % : %.template Makefile |
$(TEMPLATES) : % : %.template Makefile |
62 |
# Automake used to have a --generate-deps flag, but it's gone now, so we have |
# Automake used to have a --generate-deps flag, but it's gone now, so we have |
63 |
# to do it ourselves. |
# to do it ourselves. |
64 |
# |
# |
65 |
|
DEP_FILES := $(wildcard $(DEPDIR)/*.Po) |
66 |
.dep_segment: Makefile.am maintMakefile $(DEP_FILES) |
.dep_segment: Makefile.am maintMakefile $(DEP_FILES) |
67 |
cat $(DEP_FILES) \ |
(for f in $(DEPDIR)/*.Po; do \ |
68 |
| sed -e '/^[^:]*\.[ch] *:/d' \ |
echo ""; \ |
69 |
-e 's, /usr/[^ ]*,,g' \ |
echo "# $$f"; \ |
70 |
-e 's, $(srcdir)/, ,g' \ |
cat $$f \ |
71 |
-e '/^ \\$$/d' \ |
| sed -e '/^[^:]*\.[ch] *:/d' \ |
72 |
> $@ |
-e 's, /usr/[^ ]*,,g' \ |
73 |
|
-e 's, $(srcdir)/, ,g' \ |
74 |
|
-e '/^ *\\$$/d' \ |
75 |
|
-e '/^ *$$/d'; \ |
76 |
|
done) > $@ |
77 |
|
|
78 |
# Get rid of everything "else". |
# Get rid of everything "else". |
79 |
# |
# |