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 b405cba commit 97310d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 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
2 changes: 1 addition & 1 deletion inirw.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
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 inirw.mak CFG="inirw - Win32 Release" all
$(CYGENV) nmake /f inirw.mak CFG="inirw - Win32 Debug" all
$(MAKE)/f inirw.mak CFG="inirw - Win32 Release" all
$(MAKE)/f inirw.mak CFG="inirw - Win32 Debug" all

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

realclean: clean
-cmd /c del /s *.bak
Expand Down

0 comments on commit 97310d5

Please sign in to comment.