# CCS Computer Science # Finger Daemon # # Douglas Thrift # # $Id$ arches := $(patsubst %,.%,x86 x64) fingerd_version := $(shell version.cmd) installer := fingerd-$(fingerd_version).exe .PHONY: all install upload clean all: $(installer) define _arch $(1): fingerd.py _win32netmodule.cpp setup.cmd $$(patsubst .%,%,$$@) C:\cygwin\bin\test.exe -f $$@ endef $(foreach arch,$(arches),$(eval $(call _arch,$(arch)))) $(installer): fingerd.nsi $(arches) makensis -DFINGERD_VERSION=$(fingerd_version) \ -DBUILD_X86=$(subst /,\,$(lastword $(wildcard build/lib.win32-*))) \ -DBUILD_X64=$(subst /,\,$(lastword $(wildcard build/lib.win-amd64-*))) \ $< install: all $(installer) upload: all -del /F \\zweihander\windows\fingerd-*.exe copy $(installer) \\zweihander\windows clean: -del /A /F $(wildcard $(arches) fingerd-*.exe) -rmdir /Q /S build