summaryrefslogtreecommitdiff
path: root/lib/am/mans.am
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2001-02-27 09:12:42 +0000
committerAkim Demaille <akim@epita.fr>2001-02-27 09:12:42 +0000
commite8133bcf9b3314171647e9f40157349c53ce08fe (patch)
tree4328a0430212037d2137656ab8731f2823e85552 /lib/am/mans.am
parent833912f601dd7be2df60393826207e556b7d46b8 (diff)
downloadautomake-e8133bcf9b3314171647e9f40157349c53ce08fe.tar.gz
Distinguish automake substitutions from config.status
substitutions. * automake.in (&add_depend2): Transform AMDEP. (&handle_clean): Transform MCFILES and MFILES. (&file_contents): Transform MAINTAINER_MODE. (&transform, &am_install_var): Use `%', not `@'. Adjust all the *.am files. * clean.am: Use ?MFILES? instead of ad hoc MAINTAINERCLEAN. * depend2.am: Display the double dependency on both ?AMDEP? and @AMDEP@.
Diffstat (limited to 'lib/am/mans.am')
-rw-r--r--lib/am/mans.am28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/am/mans.am b/lib/am/mans.am
index e67e03c57..4028a572a 100644
--- a/lib/am/mans.am
+++ b/lib/am/mans.am
@@ -16,18 +16,18 @@
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
-?INSTALL_MAN?_am_installdirs += $(DESTDIR)$(man@SECTION@dir)
-.PHONY install-man: install-man@SECTION@
-install-man@SECTION@: $(man@SECTION@_MANS) $(man_MANS)
+?INSTALL_MAN?_am_installdirs += $(DESTDIR)$(man%SECTION%dir)
+.PHONY install-man: install-man%SECTION%
+install-man%SECTION%: $(man%SECTION%_MANS) $(man_MANS)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(man@SECTION@dir)
- @list='$(man@SECTION@_MANS)'; \
+ $(mkinstalldirs) $(DESTDIR)$(man%SECTION%dir)
+ @list='$(man%SECTION%_MANS)'; \
## Extract all items from man_MANS that should go in this section.
## This must be done dynamically to support conditionals.
l2='$(man_MANS)'; for i in $$l2; do \
case "$$i" in \
## Have to accept files like `foo.1c'.
- *.@SECTION@*) list="$$list $$i" ;; \
+ *.%SECTION%*) list="$$list $$i" ;; \
esac; \
done; \
for i in $$list; do \
@@ -40,21 +40,21 @@ install-man@SECTION@: $(man@SECTION@_MANS) $(man_MANS)
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
inst=`echo $$inst | sed -e 's/^.*\///'`; \
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
- echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man@SECTION@dir)/$$inst"; \
- $(INSTALL_DATA) $$file $(DESTDIR)$(man@SECTION@dir)/$$inst; \
+ echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man%SECTION%dir)/$$inst"; \
+ $(INSTALL_DATA) $$file $(DESTDIR)$(man%SECTION%dir)/$$inst; \
done
## This is just completely gross.
-.PHONY uninstall-man: uninstall-man@SECTION@
-uninstall-man@SECTION@:
+.PHONY uninstall-man: uninstall-man%SECTION%
+uninstall-man%SECTION%:
@$(NORMAL_UNINSTALL)
- @list='$(man@SECTION@_MANS)'; \
+ @list='$(man%SECTION%_MANS)'; \
## Extract all items from man_MANS that should go in this section.
## This must be done dynamically to support conditionals.
l2='$(man_MANS)'; for i in $$l2; do \
case "$$i" in \
## Have to accept files like `foo.1c'.
- *.@SECTION@*) list="$$list $$i" ;; \
+ *.%SECTION%*) list="$$list $$i" ;; \
esac; \
done; \
for i in $$list; do \
@@ -64,6 +64,6 @@ uninstall-man@SECTION@:
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
inst=`echo $$inst | sed -e 's/^.*\///'`; \
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
- echo " rm -f $(DESTDIR)$(man@SECTION@dir)/$$inst"; \
- rm -f $(DESTDIR)$(man@SECTION@dir)/$$inst; \
+ echo " rm -f $(DESTDIR)$(man%SECTION%dir)/$$inst"; \
+ rm -f $(DESTDIR)$(man%SECTION%dir)/$$inst; \
done