Skip to content

Commit

Permalink
Shorten/simplify uninstall recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
anjohnson committed Nov 12, 2019
1 parent a103793 commit 7eee262
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions configure/RULES_TOP
Expand Up @@ -16,8 +16,7 @@ cvsclean:
$(PERL) $(CVSCLEAN)

realuninstall: uninstallDirs
$(RMDIR) $(INSTALL_LOCATION_BIN)
$(RMDIR) $(INSTALL_LOCATION_LIB)
$(RMDIR) $(INSTALL_LOCATION_BIN) $(INSTALL_LOCATION_LIB)

UNINSTALL_DIRS += $(INSTALL_DBD) $(INSTALL_INCLUDE) $(INSTALL_DOC) \
$(INSTALL_HTML) $(INSTALL_TEMPLATES) $(INSTALL_DB) $(DIRECTORY_TARGETS)
Expand All @@ -32,10 +31,9 @@ uninstall: archuninstall uninstallDirs

archuninstall: $(addprefix uninstall$(DIVIDER),$(BUILD_ARCHS))

archPart = $(word 2, $(subst $(DIVIDER), ,$@))
uninstall$(DIVIDER)%:
$(RMDIR) $(INSTALL_LOCATION_BIN)/$(archPart)
$(RMDIR) $(INSTALL_LOCATION_LIB)/$(archPart)
$(RMDIR) $(addsuffix /$(subst uninstall$(DIVIDER),,$@), \
$(INSTALL_LOCATION_BIN) $(INSTALL_LOCATION_LIB))


help:
Expand Down

0 comments on commit 7eee262

Please sign in to comment.