#************************************************************************* # Copyright (c) 2002 The University of Chicago, as Operator of Argonne # National Laboratory. # Copyright (c) 2002 The Regents of the University of California, as # Operator of Los Alamos National Laboratory. # EPICS BASE Versions 3.13.7 # and higher are distributed subject to a Software License Agreement found # in file LICENSE that is included with this distribution. #************************************************************************* # # Revision-Id: anj@aps.anl.gov-20101005192737-disfz3vs0f3fiixd # include $(TOP)/config/RULES_DIRS uninstall$(DIVIDER)%: uninstallDirs @$(RMDIR) $(INSTALL_LOCATION_BIN)/$* $(INSTALL_LOCATION_LIB)/$* cleandirs: @echo " " #stops "nothing to be done for cleandirs" message ifeq ($(wildcard $(INSTALL_LOCATION_BIN)/*),) @$(RMDIR) $(INSTALL_LOCATION_BIN) endif ifeq ($(wildcard $(INSTALL_LOCATION_LIB)/*),) @$(RMDIR) $(INSTALL_LOCATION_LIB) endif distclean: clean uninstall uninstall:: $(addprefix uninstall$(DIVIDER),$(BUILD_ARCHS)) @$(MAKE) -f Makefile cleandirs uninstallDirs: @$(RMDIR) rec.bak rec @$(RMDIR) $(INSTALL_DBD) $(INSTALL_MAN) $(INSTALL_INCLUDE) $(INSTALL_DOC)\ $(INSTALL_HTML) $(INSTALL_JAVA) $(INSTALL_TEMPLATES) tar: @DIRNAME=$(notdir $(shell pwd)); \ echo "TOP: Creating $$DIRNAME.tar file..."; \ ls Makefile* | xargs tar vcf $$DIRNAME.tar; \ if [ -f .current_rel_hist ]; then \ ls .current_rel_hist | xargs tar vrf $$DIRNAME.tar ; \ fi ;\ if [ -f EPICS_BASE ]; then \ ls EPICS_BASE | xargs tar vrf $$DIRNAME.tar ; \ fi ;\ for DIR in ${DIRS}; do \ find $${DIR} -name CVS -prune -o ! -type d -print \ | grep -v "/O\..*$$" | xargs tar vrf $$DIRNAME.tar; \ done help: @echo "Usage: gnumake [options] [target] ..." @echo "Targets supported by all Makefiles:" @echo " install - Installs executables in bin/ (default rule)" @echo " build - Builds objects, using libraries from build_libs" @echo " clean - Cleans objects. Clean removes the O. dirs" @echo " in all except the O. level Makefile" @echo " depends - Generates include dependencies" @echo "\"Partial\" build targets supported by Makefiles:" @echo " install. - Builds and installs only." @echo " clean. - Cleans binaries in O. dirs only." @echo " build. - Builds only." @echo " depends. - Generates dependencies only." @echo "Targets supported by top level Makefile:" @echo " uninstall - Cleans directories created by the install." @echo " tar - Create tar file " @echo "Indiv. object targets are supported by O. level Makefile .e.g" @echo " xxxRecord.o" .PHONY :: uninstall tar help cleandirs distclean uninstallDirs