diff options
author | Bertrand Garrigues <bertrand.garrigues@laposte.net> | 2014-10-23 23:39:35 +0200 |
---|---|---|
committer | Bertrand Garrigues <bertrand.garrigues@laposte.net> | 2014-10-23 23:43:28 +0200 |
commit | fe33a2736386146c79da3b9dec507d2dfc2a6927 (patch) | |
tree | 299ccb7271a80bebb2eee55753b9144a6e7f69dc | |
parent | 6d4aa2e3bddc10aff60455da0bc5b751a2e776a3 (diff) | |
download | groff-git-fe33a2736386146c79da3b9dec507d2dfc2a6927.tar.gz |
Fix `install' and `uninstall' issues.
* contrib/chem/Makefile.sub (install_data): Fix build with option
--with-doc=no passed to configure (target `install_examples'
should not be executed).
* contrib/chem/Makefile.sub (uninstall_sub): `uninstall' failed
if directories to be removed were not present.
* contrib/gpinyin/Makefile.sub (uninstall_sub): Ditto.
* contrib/hdtbl/Makefile.sub (GENFILES): generated files should
depend on the creation of the `examples' directory.
-rw-r--r-- | ChangeLog | 16 | ||||
-rw-r--r-- | contrib/chem/Makefile.sub | 19 | ||||
-rw-r--r-- | contrib/gpinyin/Makefile.sub | 4 | ||||
-rw-r--r-- | contrib/hdtbl/Makefile.sub | 2 |
4 files changed, 29 insertions, 12 deletions
@@ -1,3 +1,19 @@ +2014-10-23 Bertrand Garrigues <bertrand.garrigues@laposte.net> + + Fix `install' and `uninstall' issues. + + * contrib/chem/Makefile.sub (install_data): Fix build with option + --with-doc=no passed to configure (target `install_examples' + should not be executed). + + * contrib/chem/Makefile.sub (uninstall_sub): `uninstall' failed + if directories to be removed were not present. + + * contrib/gpinyin/Makefile.sub (uninstall_sub): Ditto. + + * contrib/hdtbl/Makefile.sub (GENFILES): generated files should + depend on the creation of the `examples' directory. + 2014-10-23 Daiki Ueno <ueno@gnu.org> * m4/iconv.m4: Really avoid false detection of non-working iconv. diff --git a/contrib/chem/Makefile.sub b/contrib/chem/Makefile.sub index cd1fa1760..b13dc2ed8 100644 --- a/contrib/chem/Makefile.sub +++ b/contrib/chem/Makefile.sub @@ -91,26 +91,25 @@ install_examples: done .PHONY: install_data -install_data: install_always install_examples -#install_data: install_always $(make_install_examples) +install_data: install_always $(make_install_examples) # uninstall_sub: uninstall_always $(make_uninstall_examples) .PHONY: uninstall_always uninstall_always: - $(RM) $(DESTDIR)$(bindir)/chem; \ - $(RM) $(DESTDIR)$(datasubdir)/pic/chem.pic; \ - test -d $(DESTDIR)$(datasubdir)/pic && \ + $(RM) $(DESTDIR)$(bindir)/chem; + $(RM) $(DESTDIR)$(datasubdir)/pic/chem.pic; + -test -d $(DESTDIR)$(datasubdir)/pic && \ rmdir $(DESTDIR)$(datasubdir)/pic; .PHONY: uninstall_examples uninstall_examples: - $(RM) $(DESTDIR)$(exampledir)/chem/122/*; \ - test -d $(DESTDIR)$(exampledir)/chem/122 && \ - rmdir $(DESTDIR)$(exampledir)/chem/122; \ - $(RM) $(DESTDIR)$(exampledir)/chem/*; \ - test -d $(DESTDIR)$(exampledir)/chem && \ + $(RM) $(DESTDIR)$(exampledir)/chem/122/*; + -test -d $(DESTDIR)$(exampledir)/chem/122 && \ + rmdir $(DESTDIR)$(exampledir)/chem/122; + $(RM) $(DESTDIR)$(exampledir)/chem/*; + -test -d $(DESTDIR)$(exampledir)/chem && \ rmdir $(DESTDIR)$(exampledir)/chem; .PHONY: uninstall_sub diff --git a/contrib/gpinyin/Makefile.sub b/contrib/gpinyin/Makefile.sub index 5aa8859c2..4c499de30 100644 --- a/contrib/gpinyin/Makefile.sub +++ b/contrib/gpinyin/Makefile.sub @@ -57,8 +57,8 @@ install_data: gpinyin subs.pl .PHONY: uninstall_sub uninstall_sub: $(RM) $(DESTDIR)$(bindir)/gpinyin; \ - $(RM) $(DESTDIR)$(gpinyin_dir)/subs.pl; \ - test -d $(DESTDIR)$(gpinyin_dir) && \ + $(RM) $(DESTDIR)$(gpinyin_dir)/subs.pl; + -test -d $(DESTDIR)$(gpinyin_dir) && \ rmdir $(DESTDIR)$(gpinyin_dir) diff --git a/contrib/hdtbl/Makefile.sub b/contrib/hdtbl/Makefile.sub index 5bc06d848..149311ddc 100644 --- a/contrib/hdtbl/Makefile.sub +++ b/contrib/hdtbl/Makefile.sub @@ -126,6 +126,8 @@ stamp-strip: $(STRIPFILES) done touch $@ +$(GENFILES): examples/stamp + install_data: install_always $(make_install_examples) install_always: $(STRIPFILES) $(GENFILES) |