spiegel-keyman/windows/src/Header.mak
Marc Durdin dee896b4c6 chore(windows): move from Borland make to nmake
While it may be smarter to move to a different build system altogether,
it is also a *lot* more work. This was a fairly minor syntax refresh to
get nmake working with our existing Makefile system. This is now no
longer compatible with Borland make, so you will need to use `nmake` to
build.

The presence of NMAKE.md informs builds systems that nmake should be
used instead of make.
2021-12-06 12:47:31 +04:00

61 lines
No EOL
1.1 KiB
Makefile

#
# Header.mak - used for makefiles which are in parent folders
#
HEADER_MAK=1
!IFNDEF TARGETS
!ERROR You must define the targets before including the Header.mak file!
!ENDIF
!IFDEF KEYMAN_ROOT
ROOT=$(KEYMAN_ROOT)\windows
!ELSE
ROOT=c:\keyman\windows
!ENDIF
# This path will need to be updated if the root path changes
!include $(ROOT)\src\Defines.mak
#
# The targets build, signcode, symbols are standard
# targets for all projects
#
build: $(BUILDPREREQ)
$(MAKE) "TARGET=build" $(TARGETS)
!IFNDEF NOTARGET_SIGNCODE
signcode:
$(MAKE) "TARGET=signcode" $(TARGETS)
symbols:
$(MAKE) "TARGET=symbols" $(TARGETS)
!ELSE
signcode:
rem no signcode required
symbols:
rem no symbols required
!ENDIF
build-release:
!IFDEF RELEASE_TARGETS
$(MAKE) "TARGET=build-release" $(RELEASE_TARGETS)
!ELSE
@rem
!ENDIF
clean:
$(MAKE) "TARGET=clean" $(TARGETS) $(CLEANS)
install:
$(MAKE) "TARGET=install" $(TARGETS)
test-manifest:
!IFDEF MANIFESTS
$(MAKE) "TARGET=test-manifest" $(MANIFESTS)
!ELSE
$(MAKE) "TARGET=test-manifest" $(TARGETS)
!ENDIF