VERSION=$(shell head -1 debian/changelog 2>/dev/null | awk '{gsub(/\(/,"",$$2); gsub(/\)/, "" , $$2); print $$2}' ) all: cd languages && make test: @echo "TCOSPHPMONITOR version="$(VERSION) clean: find -type f -name "*~" | xargs rm -f rm -f build-stamp rm -f smarty/templates_c/* rm -f smarty/cache/* cd languages && make clean echo: echo $$(find -type f $(EDIT_FILES) ) gedit: clean gedit $$(find -type f $(EDIT_FILES) ) & permisos: chown -R www-data:www-data smarty/ pot: cd languages && make pot install: install -d $(DESTDIR)/usr/share/tcosphpmonitor/www install -d $(DESTDIR)/usr/share/tcosphpmonitor/www/css install -d $(DESTDIR)/usr/share/tcosphpmonitor/www/js install -d $(DESTDIR)/usr/share/tcosphpmonitor/www/img install -d $(DESTDIR)/usr/share/tcosphpmonitor/templates install -d $(DESTDIR)/usr/share/tcosphpmonitor/classes install -d $(DESTDIR)/usr/share/tcosphpmonitor/modules install -d $(DESTDIR)/usr/share/tcosphpmonitor/helpers install -d $(DESTDIR)/var/cache/tcosphpmonitor/ install -m 644 data.inc.php $(DESTDIR)/usr/share/tcosphpmonitor/ install -m 644 config.inc.php $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php # configure __VERSION__ and DEBUG sed -i s/'__VERSION__'/'$(VERSION)'/g $(DESTDIR)/usr/share/tcosphpmonitor/data.inc.php sed -i "/DEBUG/s/"true"/"false"/g" $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php # empty username and password sed -i "/USERNAME/s/"admin"/""/g" $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php sed -i "/PASSWORD/s/"admin"/""/g" $(DESTDIR)/etc/tcosphpmonitor/tcosphpmonitor.php install -m 644 apache.conf $(DESTDIR)/etc/tcosphpmonitor/apache.conf for i in `find www/ -type f -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done for i in `find www/js -type f -name "*.js" -o -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done for i in `find www/css -type f -name "*.css"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done for i in `find www/img -type f -name "*.png" -o -name "*.jpg" -o -name "*.gif"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done for i in `find classes/ -type f -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done for i in `find modules/ -type f -name "*.php"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done for i in `find templates/ -type f -name "*.tpl"`; do install -m 644 $$i $(DESTDIR)/usr/share/tcosphpmonitor/$$i; done install -m 644 helpers/tcos-dbus.py $(DESTDIR)/usr/share/tcosphpmonitor/helpers/tcos-dbus.py cd languages && make install DESTDIR=$(DESTDIR) targz: clean dh_clean rm -rf ../tmp 2> /dev/null mkdir ../tmp cp -ra * ../tmp rm -rf `find ../tmp/* -type d -name .svn` mv ../tmp ../tcosphpmonitor-$(VERSION) tar -czf ../tcosphpmonitor-$(VERSION).tar.gz ../tcosphpmonitor-$(VERSION) rm -rf ../tcosphpmonitor-$(VERSION) patch_version: #nothing to patch patch_unstable: patch_version # nothing to patch patch_testing: patch_version # nothing to patch patch_lenny: patch_version # nothing to patch patch_hardy: patch_version # nothing to patch patch_max: patch_version # nothing to patch patch_intrepid: patch_version # nothing to patch patch_jaunty: patch_version # nothing to patch