# # 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 # VERSION = 0.5.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/homecrypt $(DESTDIR)/$(PREFIX)/bin/homecrypt $(INSTALL) -D --mode=0755 src/cryptcreate $(DESTDIR)/$(PREFIX)/bin/cryptcreate install_doc: $(INSTALL) -D --mode=0644 doc/COPYING $(DESTDIR)/$(PREFIX)/doc/homecrypt-$(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-homecrypt @mkdir -p /tmp/package-homecrypt @make DESTDIR=/tmp/package-homecrypt install @cd /tmp/package-homecrypt && makepkg -c y -l y /tmp/homecrypt-$(VERSION)-noarch-$(BUILD).tgz && cd - && rm -rf /tmp/package-homecrypt