head	1.1;
branch	1.1.1;
access;
symbols
	draft-1-20050823:1.1.1.1.0.2
	start:1.1.1.1
	jinkoo:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2005.08.23.10.33.40;	author jkoohan;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2005.08.23.10.33.40;	author jkoohan;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@DESTROOT=$(DESTDIR)/usr/share
PROGRAM_DIR=$(DESTROOT)/potamia-config-hangulkey
SRC_DIR=$(DESTROOT)/potamia-config-hangulkey/src
ICONS_DIR=$(DESTROOT)/icons/Booyohaans/48x48/

DESKTOP_DIR=$(DESTROOT)/applications

subdir= po

all: 
	@@for i in $(subdir); \
	do \
		(cd $$i && DESTDIR=$(DESTROOT) make); \
	done

#install: install_po
install: 
	@@for i in $(subdir); \
	do \
		(cd $$i && make DESTDIR=$(DESTDIR) install) \
	done
	@@if [ "$(DESTROOT)" = "" ]; then \
		echo " "; \
		echo "ERROR: A destdir is required"; \
		exit 1; \
	fi

	mkdir -p $(PROGRAM_DIR)
	mkdir -p $(DESTDIR)/usr/bin/
	mkdir -p $(DESTDIR)/usr/sbin/
	mkdir -p $(DESTDIR)/etc/security/console.apps
	mkdir -p $(DESTDIR)/etc/pam.d/
	mkdir -p $(SRC_DIR)
	mkdir -p $(DESKTOP_DIR)
	mkdir -p $(ICONS_DIR)

	install -m 644 README $(PROGRAM_DIR)/
	install -m 644 src/*.py $(SRC_DIR)
	install -m 644 src/*.db $(SRC_DIR)
	install -m 644 *.desktop $(DESKTOP_DIR)
	install -m 644 potamia-config-hangulkey $(DESTDIR)/etc/security/console.apps/potamia-config-hangulkey.py
	install -m 644 pam.d_potamia-config-hangulkey $(DESTDIR)/etc/pam.d/potamia-config-hangulkey.py

	chmod 755 $(SRC_DIR)/potamia-config-hangulkey.py

	install -m 644 icons/*.png $(ICONS_DIR)

	
#install_po:
#	@@for i in $(subdir); \
#	do \
#		(cd $$i && make DESTDIR=$(DESTDIR) install) \
#	done
clean:
	@@echo "Nothing to do."
@


1.1.1.1
log
@HangulKey
@
text
@@
