OSDN Git Service

Fixed and cleanup condition(LT/LE/GT/GE) check in FSM
[openpts/openpts.git] / Makefile.am
1 #
2 # Makefile.am
3 #
4 # This file is part of the OpenPTS project.
5 #
6 # The Initial Developer of the Original Code is International
7 # Business Machines Corporation. Portions created by IBM
8 # Corporation are Copyright (C) 2010 International Business
9 # Machines Corporation. All Rights Reserved.
10 #
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the Common Public License as published by
13 # IBM Corporation; either version 1 of the License, or (at your option)
14 # any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # Common Public License for more details.
20 #
21 # You should have received a copy of the Common Public License
22 # along with this program; if not, a copy can be viewed at
23 # http://www.opensource.org/licenses/cpl1.0.php.
24 #
25
26 #SUBDIRS                =       m4      \
27 #                       include \
28 #                       lib     \
29 #                       src     \
30 #                       tests   \
31 #                       po \
32 #                       man
33 #
34 ACLOCAL_AMFLAGS = -I m4
35 #
36 #EXTRA_DIST = LICENSE
37
38 SUBDIRS = m4 po src doc models
39
40 #
41 # Symlink to openpts-version dir
42 #
43
44 ../$(PACKAGE)-$(PACKAGE_VERSION):
45         ln -s $(PWD) ../$(PACKAGE)-$(PACKAGE_VERSION)
46
47 #
48 # tar ball
49 #
50
51 tgz:  ../$(PACKAGE)-$(PACKAGE_VERSION)
52         cd ..; tar --exclude=.git --exclude=.svn --exclude=bin --exclude=.project -zcvf $(PACKAGE)-$(PACKAGE_VERSION).tar.gz $(PACKAGE)-$(PACKAGE_VERSION)/*
53
54 #
55 # Build RPM Package
56 # ./bootstrap.sh;./configure; make rpmbuild-ba
57 #
58 RPMDIR=$(HOME)/rpmbuild
59
60
61 rpmbuild-ba: ../$(PACKAGE)-$(PACKAGE_VERSION)
62         rm -f  $(RPMDIR)/SOURCES/$(PACKAGE)-$(PACKAGE_VERSION).tar.gz 
63         make clean
64         cd ..; tar --exclude=.git --exclude=bin --exclude=tests --exclude=.project -zcvf $(RPMDIR)/SOURCES/$(PACKAGE)-$(PACKAGE_VERSION).tar.gz $(PACKAGE)-$(PACKAGE_VERSION)/*
65         cd ..; rpmbuild -ba $(PACKAGE)-$(PACKAGE_VERSION)/dist/$(PACKAGE).spec
66
67
68 #
69 # Build DEB Package
70 # ./bootstrap.sh;./configure; make dpkg-buildpackage
71 # dpkg --contents ../openpts_0.2.0_i386.deb
72
73 debian:
74         ln -s $(PWD)/ChangeLog dist/debian/changelog
75         ln -s $(PWD)/LICENSE dist/debian/copyright
76         ln -s $(PWD)/README dist/debian/docs
77         ln -s $(PWD)/dist/debian debian
78
79 dpkg-buildpackage: debian
80         chmod +x debian/rules
81         -dpkg-buildpackage -tc -uc -b
82         @echo "make dpkg-buildpackage - done" 
83         ls -l ../*openpts*deb
84
85 debian-clean:
86         rm dist/debian/changelog
87         rm dist/debian/copyright
88         rm dist/debian/docs
89         rm debian
90