objdictgen/Makefile.in
author etisserant
Tue, 20 Jun 2006 22:43:37 +0200
changeset 38 9b5bb1dcb4f5
parent 0 4472ee7c6c3e
child 39 3e94ee906bc6
permissions -rw-r--r--
Cygwin port. Still untested. Compiles and link.
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
#! gmake
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     2
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
#
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
# Copyright (C) 2006 Laurent Bessard
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
# 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
# This file is part of canfestival, a library implementing the canopen
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
# stack
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
# 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
# This library is free software; you can redistribute it and/or
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
# modify it under the terms of the GNU Lesser General Public
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
# License as published by the Free Software Foundation; either
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
# version 2.1 of the License, or (at your option) any later version.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
# 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
# This library is distributed in the hope that it will be useful,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
# Lesser General Public License for more details.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
# 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
# You should have received a copy of the GNU Lesser General Public
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
# License along with this library; if not, write to the Free Software
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
# 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
PREFIX = SUB_PREFIX
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
INSTALL_JAXE = SUB_OPT_JAXE
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
all: jaxe gnosis
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
jaxe: jaxe-unix-2.2.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
gnosis: Gnosis_Utils-1.2.1.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    33
Gnosis_Utils-1.2.1.tar.gz:
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    34
	wget http://gnosis.cx/download/Gnosis_Utils-1.2.1.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    35
	tar xfz Gnosis_Utils-1.2.1.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    36
	mv Gnosis_Utils-1.2.1/gnosis .
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    37
	rm -rf Gnosis_Utils-1.2.1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    38
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    39
jaxe-unix-2.2.tar.gz:
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    40
ifeq ($(INSTALL_JAXE),jaxe)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    41
	wget http://dl.sourceforge.net/sourceforge/jaxe/jaxe-unix-2.2.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    42
	tar xfz jaxe-unix-2.2.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    43
endif
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    44
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    45
install: jaxe
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    46
	cp -r ../objdictgen $(PREFIX)/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    47
ifeq ($(INSTALL_JAXE),jaxe)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    48
	rm -f $(PREFIX)/objdictgen/jaxe-unix-2.2.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    49
endif
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    50
	rm -f $(PREFIX)/objdictgen/Gnosis_Utils-current.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    51
	chmod -R a+r $(PREFIX)/objdictgen
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    52
	chmod 755 $(PREFIX)/objdictgen/objdictedit.sh
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    53
	echo -e "#!/bin/sh\n pushd $(PREFIX)/objdictgen/\n ./objdictedit.sh\n popd\n" > $(PREFIX)/bin/objdictedit
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    54
	chmod 755 $(PREFIX)/bin/objdictedit
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    55
	ln -s $(PREFIX)/objdictgen/objdictgen.py $(PREFIX)/bin/objdictgen
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    56
	chmod 755 $(PREFIX)/objdictgen/objdictgen.py
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    57
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    58
uninstall:
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    59
	-rm -rf $(PREFIX)/objdictgen
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    60
	-rm -f $(PREFIX)/bin/objdictgen
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    61
	-rm -f $(PREFIX)/bin/objdictgen.py
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    62
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    63
clean:
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    64
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    65
mrproper: clean
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    66
ifeq ($(INSTALL_JAXE),jaxe)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    67
	-rm -f jaxe-unix-2.2.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    68
	-rm -rf jaxe
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    69
endif
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    70
	-rm -f Gnosis_Utils-1.2.1.tar.gz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    71
	-rm -rf gnosis
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    72
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    73