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

Summary: Add custom makefile recipes in dropdown in editor
Product: cnd Reporter: antoniocs <antoniocs>
Component: EditorAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: ENHANCEMENT Exception Reporter:

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.

Example:

-- Makefile --

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

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