# Autogenerated by SCAM 0.7.0


scam-all: scam-all-subdirs scam-all-local
prefix=/usr/


#
# Now user added rules (maybe modified by scams)
#

UIC=/usr/share/qt4/bin/uic
NAME=librework
PACKAGE=librework-erp
CC=g++
CXXFLAGS=-I/usr/share/qt4/include/QtCore -I/usr/share/qt4/include/QtGui -I/usr/share/qt4/include -DQT_THREAD_SUPPORT -I. -Dicon_dir=\"$(prefix)/share/apps/tpvtux/icons\" -Dhelp_dir=\"$(prefix)/share/apps/tpvtux/help\" -Dconf_dir=\"$(prefix)/share/apps/tpvtux/\" -Dtemplate_dir=\"$(prefix)/share/apps/tpvtux/template/\" -D__KDE__ -O2 -fPIC -DQT3_SUPPORT
CXX=g++
VERSION=3.0
LDFLAGS=-L/usr/lib/x86_64-linux-gnu -lQtSql
SCAM_CHECK_DEPENDS=yes
MOC=/usr/share/qt4/bin/moc
FULLNAME=librework-3.0

%.so:
	rm -f $@
	gcc -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS)

REV=`svn log -r HEAD ../.. | grep "^r" | awk '{ print $$1 }' | sed "s/r/rev./"`

all: 

install: 
	mkdir -p $(prefix)/share/apps/tpvtux/icons/32x32
	mkdir -p $(prefix)/share/apps/tpvtux/icons/48x48
	mkdir -p $(prefix)/share/apps/tpvtux/icons/64x64
	mkdir -p $(prefix)/share/apps/tpvtux/icons/128x128
	mkdir -p $(prefix)/share/apps/tpvtux/icons/menu
	mkdir -p $(prefix)/share/apps/tpvtux/icons/otros
	install -m 755 32x32/* $(prefix)/share/apps/tpvtux/icons/32x32
	install -m 755 48x48/* $(prefix)/share/apps/tpvtux/icons/48x48
	install -m 755 64x64/* $(prefix)/share/apps/tpvtux/icons/64x64
	install -m 755 128x128/* $(prefix)/share/apps/tpvtux/icons/128x128
	install -m 755 menu/* $(prefix)/share/apps/tpvtux/icons/menu
	convert menu/splash.png -gravity NorthEast -draw 'text 0,0 "'$(REV)'"' $(prefix)/share/apps/tpvtux/icons/menu/splash.png
	convert menu/splash-oki.png -gravity NorthEast -draw 'text 0,0 "'$(REV)'"' $(prefix)/share/apps/tpvtux/icons/menu/splash-oki.png
	convert menu/librework.png -gravity NorthEast -draw 'text 0,0 "'$(REV)'"' $(prefix)/share/apps/tpvtux/icons/menu/splash-librework.png
	install -m 755 otros/*.png $(prefix)/share/apps/tpvtux/icons/otros

uninstall: 
	rm -rf $(prefix)/share/apps/tpvtux/icons
	rm -rf $(prefix)/share/icons/synkro.png
	rm -rf $(prefix)/share/icons/tpvtux.png

.depends: 
	touch .depends

include .depends

# Additional tagets by scam:
DISTBASE=../.././librework-3.0/./src/icons


dist: 
	rm -rf $(DISTBASE) || true
	mkdir -p $(DISTBASE)
	cp Makefile.scam $(DISTBASE)


dist2: 
	rm -rf $(DISTBASE) || true
	mkdir -p $(DISTBASE)
	cp Makefile.scam $(DISTBASE)


scam-all-local: all

scam-all-subdirs: 

distclean: clean
	@rm -f Makefile
	@rm -f *.pyc


clean: 
	@rm -rf all
	@rm -rf .depends
	@rm -rf *~
	@rm -rf *.o

