local-uninstall: uninstall-help2man
uninstall-help2man:
- $(foreach a, $(notdir $(MANGROFFS)), rm -f $(a) && ) true
+ $(foreach a, $(HELP2MAN_GROFFS), rm -f $(DESTDIR)$(mandir)/man1/$(notdir $(a)) && ) true
-rmdir $(DESTDIR)$(mandir)/man1
local-uninstall-files:
local-uninstall-outfiles:
- rm -f $(foreach i, $(notdir $(INSTALLATION_OUT_FILES)), \
+ rm -f $(foreach i, $(INSTALLATION_OUT_FILES:$(outdir)/%=%), \
$(DESTDIR)$(INSTALLATION_OUT_DIR)/$(i))
rm -f $(foreach suff, $(INSTALLATION_OUT_SUFFIXES), \
- $(foreach i, $(INSTALLATION_OUT_FILES$(suff)), \
+ $(foreach i, $(INSTALLATION_OUT_FILES$(suff):$(outdir)/%=%), \
$(DESTDIR)$(INSTALLATION_OUT_DIR$(suff))/$(i)))
- -rmdir $(DESTDIR)$(INSTALLATION_OUT_DIR) $(foreach suff, $(INSTALLATION_OUT_SUFFIXES), $(DESTDIR)$(INSTALLATION_OUT_DIR$(suff)))
+ -rmdir -p $(DESTDIR)$(INSTALLATION_OUT_DIR) $(foreach suff, $(INSTALLATION_OUT_SUFFIXES), $(DESTDIR)$(INSTALLATION_OUT_DIR$(suff)))
rm -f $(foreach suff, $(INSTALLATION_SUFFIXES), \
$(foreach i, $(INSTALLATION_FILES$(suff)),\
$(DESTDIR)$(INSTALLATION_DIR$(suff)/$(i))))
- -rmdir $(DESTDIR)$(INSTALLATION_DIR) $(foreach suff, $(INSTALLATION_SUFFIXES), $(DESTDIR)$(INSTALLATION_DIR$(suff))/)
+ -rmdir -p $(DESTDIR)$(INSTALLATION_DIR) $(foreach suff, $(INSTALLATION_SUFFIXES), $(DESTDIR)$(INSTALLATION_DIR$(suff))/)
local-uninstall: omf-local-uninstall
omf-local-uninstall:
- rm -f $(foreach i, $(OMF_FILES), $(DESTDIR)$(local_package_omfdir)/$(i))
+ rm -f $(foreach i, $(OMF_FILES), $(DESTDIR)$(local_package_omfdir)/$(notdir $(i)))
-rmdir $(DESTDIR)$(local_package_omfdir)
else # out!=www
-local-install-info: info
- -$(INSTALL) -d $(DESTDIR)$(package_infodir)
ifneq ($(patsubst %/local,%,$(DESTDIR)$(prefix)),/usr)
## Can not have absolute symlinks because some binary packages build schemes
## install files in nonstandard root. Best we can do is to notify the
## builder or packager.
+local-install-info: info
+ -$(INSTALL) -d $(DESTDIR)$(package_infodir)
@echo
@echo "***************************************************************"
@echo "Please add or update the LilyPond direntries, do"
@echo
@echo "and read the extra instructions."
@echo
+
+local-uninstall-info:
+ -rmdir $(DESTDIR)$(package_infodir)
+
else # installing directly into standard /usr/...
+local-install-info: info
+ -$(INSTALL) -d $(DESTDIR)$(package_infodir)
-$(INSTALL) -d $(DESTDIR)$(infodir)
$(foreach f,$(INFO_FILES),install-info --remove --info-dir=$(infodir) $(f) ; )true
install-info --info-dir=$(infodir) $(outdir)/$(MAIN_INFO_DOC).info
@echo
@echo " make out=www install-info "
@echo
-endif # installing into standard /usr/* root# installing into /usr/...
+
+local-uninstall-info:
+ $(foreach f,$(INFO_FILES),install-info --remove --info-dir=$(infodir) $(f) ; )true
+ -rmdir $(DESTDIR)$(infodir)
+ -rmdir $(DESTDIR)$(package_infodir)
+
+endif # installing into standard /usr/* root
endif # out!=www
local-uninstall:
for a in compiler ftdetect ftplugin indent syntax; do \
rm $(DESTDIR)$(vimdir)/$$a/lilypond.vim ; \
- -rmdir -p $(DESTDIR)$(vimdir)/$$a ; \
+ rmdir $(DESTDIR)$(vimdir)/$$a; \
done
+ -rmdir -p $(DESTDIR)$(vimdir)
$(LILYPOND_WORDS):
cd $(top-src-dir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(top-build-dir)/vim/$(outconfbase)