Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

5 years ago
  1. ### Makefile - for scripts and icons (./etc) of ESS distribution.
  2. ###
  3. ## Before making changes here, please take a look at Makeconf
  4. include ../Makeconf
  5. #ETCFILES = $(wildcard BACKBUG[S5].BAT backbug[s5] *.S sas-keys.*)
  6. #ETCFILES = ESSR.R ess-developer.R SVN-REVISION *.S sas-keys.* ess-sas-sh-command
  7. # ETCFILES_1 = *.S sas-keys.* ess-sas-sh-command *.jl
  8. ETCFILES_1 = ess-sas-sh-command *.jl
  9. isRELEASE=$(shell test -f .IS.RELEASE && echo 'yes')
  10. ifeq ($(isRELEASE),yes)
  11. ETCFILES = .IS.RELEASE git-ref $(ETCFILES_1)
  12. else
  13. ETCFILES = $(ETCFILES_1)
  14. endif
  15. #ICONS = $(wildcard icons/*.xpm)
  16. ICONS = icons/*.xpm
  17. ESSR_UTIL_FILES = ESSR/LOADREMOTE
  18. ESSR_CODE_FILES = ESSR/R/*.R ESSR/R/.*.R
  19. all:
  20. show-etc:
  21. @echo $(ETCFILES)
  22. ls -l $(ETCFILES)
  23. install :
  24. $(INSTALLDIR) $(ETCDIR)/icons
  25. $(INSTALLDIR) $(ETCDIR)/ESSR/R
  26. $(INSTALL) $(ETCFILES) $(ETCDIR)
  27. $(INSTALL) $(ICONS) $(ETCDIR)/icons
  28. $(INSTALL) $(ESSR_UTIL_FILES) $(ETCDIR)/ESSR
  29. $(INSTALL) $(ESSR_CODE_FILES) $(ETCDIR)/ESSR/R
  30. chmod +x $(ETCDIR)/ess-sas-sh-command
  31. uninstall :
  32. -cd $(ETCDIR) && $(UNINSTALL) $(ETCFILES)
  33. -cd $(ETCDIR) && $(UNINSTALL) $(ICONS)
  34. -cd $(ETCDIR) && $(UNINSTALL) $(ESSR_UTIL_FILES)
  35. -cd $(ETCDIR) && $(UNINSTALL) $(ESSR_CODE_FILES)
  36. ## 'clean' shall remove *exactly* those things that are *not* in version control
  37. clean distclean:
  38. rm -rf SVN-REVISION
  39. ## 'distclean' removes also things in VC (svn, when they are remade by "make"):
  40. # distclean: clean
  41. # rm -rf ESSR_*.tar.gz