PC Review


Reply
Thread Tools Rate Thread

compare files inside nmake makefile

 
 
=?Utf-8?B?aGhpbGxhcmNoZXI=?=
Guest
Posts: n/a
 
      6th Jun 2007
I would like to, within an nmake makefile, compare two files and then if
they are equal perform some action.

I have a compare program (cmp) that works. Not sure if thats a native XP
program or whether I downloaded it....but the program works . I'm using nmake
6.0.

I tried doing the below in nmake but I got an error after the cmp statement.

!if [cmp file1 file2] !=0
echo files match
!else
echo files don't match
!endif

The make error reports "unexpected file1 at this time", nmake fatal error
U1077

Anyway to do this?.... Other than the web, where is a good pdf reference on
nmake. I don't like the web format.

If this cannot be performed in a makefile but in a batch file, that would be
ok too.
Thnx for any help,
Kevin
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NMAKE Medical_SW_Dev Windows XP Drivers 0 16th Oct 2008 09:26 PM
NMake RG Microsoft VC .NET 5 8th Jul 2005 08:01 AM
C++ by nmake Milos Puchta Microsoft VC .NET 2 24th Sep 2004 07:58 PM
Running VC 1.5 NMAKE under Win XP? Jim Johnson Windows XP General 2 19th Feb 2004 03:05 AM
nmake John Microsoft C# .NET 1 10th Jul 2003 01:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:36 PM.