Skip to content

Commit

Permalink
Build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa committed Feb 18, 2015
1 parent 0b1ec57 commit 84ed7a9
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 17 deletions.
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@

VER?=$(shell perl -n -e '/define\s+VER_STRING2\s+"(.*)"/ && print $$1' version.h)
APP?=$(shell perl -n -e '/define\s+VER_INTERNAL_NAME\s+"(.*)"/ && print $$1' version.h)
VC98?=$(PROGRAMFILES)\\Microsoft Visual Studio\\VC98
MSVC_DIR?=$(shell cygpath -u `cygpath -ds "$(VC98)"`)
CYGENV=MAKEFLAGS="" PATH=$(MSVC_DIR)/bin:$$PATH
APP_FILES=Release/$(APP).exe changelog.txt COPYING readme.txt
SRC_FILES=$(APP_FILES) $(shell ls Makefile *.cpp *.dep *.dsp *.dsw *.h *.ico *.mak *.rc 2>/dev/null)

APP_ZIP?=$(APP)-$(VER)-win32.zip
SRC_ZIP?=$(APP)-$(VER)-win32-src.zip
ZIP?=zip
ZIP_OPTS?=-9jquX
CWD=$(shell pwd)
APP_FILES=Release/$(APP).exe changelog.txt COPYING readme.txt
SRC_FILES=$(APP_FILES) $(shell ls *.cpp *.c *.h *.hpp *.inl *.dsp *.dsw *.mak *.dep Makefile 2>/dev/null)

.PHONY: dist
dist: all $(APP_ZIP) $(SRC_ZIP)
Expand Down
8 changes: 4 additions & 4 deletions nmake.mak
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
all:
$(CYGENV) nmake /f path_set.mak CFG="path_set - Win32 Release" all
$(CYGENV) nmake /f path_set.mak CFG="path_set - Win32 Debug" all
$(MAKE)/f path_set.mak CFG="path_set - Win32 Release" all
$(MAKE)/f path_set.mak CFG="path_set - Win32 Debug" all

clean:
$(CYGENV) nmake /f path_set.mak CFG="path_set - Win32 Release" clean
$(CYGENV) nmake /f path_set.mak CFG="path_set - Win32 Debug" clean
$(MAKE)/f path_set.mak CFG="path_set - Win32 Release" clean
$(MAKE)/f path_set.mak CFG="path_set - Win32 Debug" clean

realclean: clean
-cmd /c del /s *.bak
Expand Down
26 changes: 20 additions & 6 deletions path_set.dep
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
# Microsoft Developer Studio Generated Dependency File, included by path_set.mak

.\path_set.cpp : \
".\UpdatePathVariable.h"\
".\version.h"\
{$(INCLUDE)}"basetsd.h"\
{$(INCLUDE)}"guiddef.h"\
{$(INCLUDE)}"propidl.h"\
{$(INCLUDE)}"reason.h"\
{$(INCLUDE)}"shtypes.h"\
{$(INCLUDE)}"specstrings.h"\
{$(INCLUDE)}"stralign.h"\
{$(INCLUDE)}"tvout.h"\
{$(INCLUDE)}"debug.h"\
{$(INCLUDE)}"getopt.h"\
{$(INCLUDE)}"Optimize.h"\
{$(INCLUDE)}"Stackwalker.h"\
{$(INCLUDE)}"optimize.h"\
{$(INCLUDE)}"stackwalker.h"\
".\UpdatePathVariable.h"\
".\version.h"\
{$(INCLUDE)}"ver_defaults.h"\


.\UpdatePathVariable.cpp : \
".\UpdatePathVariable.h"\
{$(INCLUDE)}"basetsd.h"\
{$(INCLUDE)}"guiddef.h"\
{$(INCLUDE)}"reason.h"\
{$(INCLUDE)}"specstrings.h"\
{$(INCLUDE)}"stralign.h"\
{$(INCLUDE)}"tvout.h"\
{$(INCLUDE)}"debug.h"\
{$(INCLUDE)}"SystemMessage.h"\
{$(INCLUDE)}"systemmessage.h"\
".\UpdatePathVariable.h"\


.\path_set.rc : \
Expand Down
Binary file added path_set.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion path_set.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
#include "windows.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
Expand Down

0 comments on commit 84ed7a9

Please sign in to comment.