# # Makefile by Silvio Rhatto (rhatto at riseup.net). # # This Makefile is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or any later version. # # This Makefile is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # PACKAGE = openoffice-chroot VERSION = 0.1.1 BUILD = 1rha PREFIX = /usr INSTALL = /usr/bin/install clean: find . -name *~ | xargs rm -f # clean local backups install_bin: $(INSTALL) -D --mode=0755 src/openoffice-chroot $(DESTDIR)/$(PREFIX)/bin/openoffice-chroot $(INSTALL) -D --mode=0755 src/openoffice-wrapper $(DESTDIR)/$(PREFIX)/bin/openoffice-wrapper $(INSTALL) -D --mode=0755 src/openoffice32 $(DESTDIR)/$(PREFIX)/bin/openoffice32 install_doc: $(INSTALL) -D --mode=0644 doc/README $(DESTDIR)/$(PREFIX)/doc/$(PACKAGE)-$(VERSION)/README $(INSTALL) -D --mode=0644 doc/COPYING $(DESTDIR)/$(PREFIX)/doc/$(PACKAGE)-$(VERSION)/COPYING install: clean @make install_bin install_doc $(INSTALL) -D --mode=0644 install/slack-desc $(DESTDIR)/install/slack-desc #$(INSTALL) -D --mode=0755 install/doinst.sh $(DESTDIR)/install/doinst.sh package: echo "Remember to run this option as root!" @rm -rf /tmp/package-$(PACKAGE) @mkdir -p /tmp/package-$(PACKAGE) @make DESTDIR=/tmp/package-$(PACKAGE) install @cd /tmp/package-$(PACKAGE) && makepkg -c y -l y /tmp/$(PACKAGE)-$(VERSION)-noarch-$(BUILD).tgz && cd - && rm -rf /tmp/package-$(PACKAGE) echo "Remember to run this option as root!"