Question as title.
Netbeans does not offer pre- or postbuild steps and also does not offer this setting by default. Is there any convinient way I can make this work or can I edit some configs? I think the makefile is getting regenerated when you add files etc.
I heavily rely on header only libs like boost or glm and my productivity depends on precompiled headers since it makes the code compile so much faster.
I use mingw as a compiler suite on windows and as language C++.
EDIT
My modified makefile after the first suggestion:
# Environment
MKDIR=mkdir
CP=cp
CCADMIN=CCadmin
# build
build: .build-post
.build-pre:
# Add your pre 'build' code here...
NightLight.hpp.gch: Nightlight.hpp
$(COMPILE.cc) $(CXXFLAGS) -g NightLight.hpp
.build-post: .build-impl
# Add your post 'build' code here...
# clean
clean: .clean-post
.clean-pre:
# Add your pre 'clean' code here...
.clean-post: .clean-impl
# Add your post 'clean' code here...
$(RM) pch.h.gch