KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am attempting to set up an nmake makefile to export our balsamiq mockup files to png files automatically, but I'm afraid I can't make heads nor tails of how to make a generic rule for doing so, without explicitly listing all the files I want exported. This page details the command line syntax for exporting the files, and this page contains an example which looks like it contains a generic rule for .obj files to .exe files. The makefile I have tried so far looks like this: .bmml.png: "C:\Program Files\Balsamiq Mockups\Balsamiq Mockups.exe" export $< $@ But this doesn't work. If I simply run nmake (with some outdated png files), nmake just does this: [C:\Temp] :nmake Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. [C:\Temp] : If I ask it to build one specific file, it does this: [C:\Temp] :nmake "TestFile.png" Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1073: don't know how to make '"TestFile.png"' Stop. [C:\Temp] : Any nmake gurus out there that can set me straight? An example makefile which simply makes .dat files from .txt files by copying them, to experiment with, looks like this: .txt.dat: copy $< $@ this does nothing as well, so clearly I'm not understanding how such generic rules work. Do I need to specify a goal above that somehow lists the files I want?
Tags (comma-separated)
Save Edits
Cancel