This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262154 - Add custom makefile recipes in dropdown in editor
Summary: Add custom makefile recipes in dropdown in editor
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P2 normal (vote)
Assignee: issues@cnd
Depends on:
Reported: 2016-05-19 21:28 UTC by antoniocs
Modified: 2016-05-20 08:19 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description antoniocs 2016-05-19 21:28:20 UTC
It would be nice to have a dropdown containing all the recipes of a custom Makefile.

I normally use custom makefiles and have to resort to either hard coding the recipe I want in an option somewhere in netbeans or just using the command line.

It would be much easier if Netbeans would parse the makefile and provide the recipes in the makefile.


-- Makefile --

CFLAGS=-std=c11 -Wall -Werror -g
LDLIBS=`pkg-config --libs --cflags sdl2 SDL2_ttf`

drawing_priority: drawing_priority.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
fonts: fonts.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)

In netbeans there would be a dropdown with the options:

- drawing_priority
- fonts

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_66; Java HotSpot(TM) 64-Bit Server VM 25.66-b18
Runtime: Java(TM) SE Runtime Environment 1.8.0_66-b18
System: Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb)
Comment 1 Vladimir Voskresensky 2016-05-20 08:19:52 UTC
Netbeans parses Makefiles and provides it's structure in Navigator window (Ctrl+7)
Navigator is searchable (just start typing when focus in navigator) and clickable. 

Btw, if you select makefile in project (ctrl+shift+1) or files (ctrl+shift+2) views then in context menu you can use Run Target.

Additionally you can configure "Send To"  (available in editor's context menu) and add any extra action for your makefile file