Modules.am 386 Bytes
Newer Older
zorglub's avatar
zorglub committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SOURCES_qt4 = qt4.cpp

EXTRA_DIST += \
	qt4.hpp

TOUI = file_open
UIH := $(TOUI:%=%.h)

TOMOC = main_interface
MOCCPP := $(TOMOC:%=%.moc.cpp)

if ENABLE_QT4

BUILT_SOURCES += $(UIH) 
BUILT_SOURCES += $(MOCCPP) 

nodist_SOURCES_qt4 = $(UIH) $(MOCCPP)

$(MOCCPP): %.moc.cpp: %.hpp
	@echo "MOC $< -> $@"
	moc -o $@ $<

$(UIH): %.h: %.ui 
	@echo "UIC $< -> $@"
	uic -tr _ -o $@ $<  

endif