Makefile 734 B

123456789101112131415161718192021222324252627282930
  1. MODULE_TOPDIR = ..
  2. SUBDIRS = \
  3. osgeo4w
  4. include $(MODULE_TOPDIR)/include/Make/Dir.make
  5. EXTRA_CLEAN_FILES = GRASS-Packager.bat GRASS-Installer.nsi
  6. ifneq ($(MINGW),)
  7. default: GRASS-Packager.bat GRASS-Installer.nsi parsubdirs
  8. else
  9. default:
  10. endif
  11. GRASS-Packager.bat: GRASS-Packager.bat.tmpl
  12. sed \
  13. -e 's#@GRASS_VERSION_MAJOR@#$(GRASS_VERSION_MAJOR)#' \
  14. -e 's#@GRASS_VERSION_MINOR@#$(GRASS_VERSION_MINOR)#' \
  15. $< > $@
  16. GRASS-Installer.nsi: GRASS-Installer.nsi.tmpl
  17. sed \
  18. -e 's#@GRASS_VERSION_GIT@#$(GRASS_VERSION_GIT)#' \
  19. -e 's#@GRASS_VERSION_MAJOR@#$(GRASS_VERSION_MAJOR)#' \
  20. -e 's#@GRASS_VERSION_MINOR@#$(GRASS_VERSION_MINOR)#' \
  21. -e 's#@GRASS_VERSION_RELEASE@#$(GRASS_VERSION_RELEASE)#' \
  22. -e 's#@ARCH@#$(ARCH)#' \
  23. $< > $@