I would like have Makefile.am like this : > #include $(top_srcdir)/m4/autotroll.mk > > noinst_LIBRARIES = libcutitdata.a > > libcutitdata_a_SOURCES = data.qrc.cpp > libcutitdata_a_QT_RESOURCE_TEMPLATE = data.qrc > > libcutitdata_a_CXXFLAGS = $(QT_CXXFLAGS) $(AM_CXXFLAGS) > libcutitdata_a_CPPFLAGS = $(QT_CPPFLAGS) $(AM_CPPFLAGS) > > data_qrc_FILES = exit.png \ > unknown.png
I read documentation and i apend something like that : > SUFIXES = .qrc.cpp > > .qrc.qrc.cpp: #$(data_qrc_FILES) > $(RCC) -name `echo "$<" | sed 's/\.qrc$$//'` $< -o $@ but dont work. data.qrc.cpp can't be done because don't rule. I copy-paste from Makefile and append: > #copy paste and hand writed > data.qrc.cpp: data.qrc $(data_qrc_FILES) > $(RCC) -name `echo "$<" | sed 's/\.qrc$$//'` $< -o $@ > > #and this if above is not enought > libcutitdata_a-data.qrc.cpp: data.qrc $(data_qrc_FILES) > $(RCC) -name `echo "$<" | sed 's/\.qrc$$//'` $< -o $@ Its work but: - make clean make istclean don't work - if i change some files resource is not rebuild - make dist have only data.qrc.cpp I have the same problem with generating png from svg, in uic in few my packages. I have parser generator and arg parser generator i i would like to distribute it with *.m4 and *.mk. How do job in proper way and dond re-invent circle (like qmake smake or crap-make only for one extension) ???