/make/edam-mk

To get this branch, use:
bzr branch http://bzr.ed.am/make/edam-mk

« back to all changes in this revision

Viewing changes to edam.mk

  • Committer: edam
  • Date: 2011-03-16 16:03:15 UTC
  • Revision ID: edam@waxworlds.org-20110316160315-418eeb4u3lvhyxje
- added the debug goal

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
# run          Builds the target of your Makefile and, if successful, runs it.
120
120
#              This is not available if you're building a library of some kind.
121
121
#
 
122
# debug        The same as the run goal, except instead of running the target,
 
123
#              it is debugged with gdb.
 
124
#
122
125
# clean        Deletes temporary files.
123
126
#
124
127
# clean_all    Deletes temporary files and then goes through then project's
224
227
#_______________________________________________________________________________
225
228
#                                                                          RULES
226
229
 
227
 
.PHONY: all subdirs subprojs target clean clean_all run depend dep \
 
230
.PHONY: all subdirs subprojs target clean clean_all run debug depend dep \
228
231
        $(SUBDIRS) $(SUBPROJS)
229
232
 
230
233
all: subdirs subprojs target
250
253
ifndef MKSHAREDLIB
251
254
run: target
252
255
        ./$(TARGET)
 
256
 
 
257
debug: target
 
258
        gdb ./$(TARGET)
253
259
endif
254
260
endif
255
261