4 # This file is part of the OpenPTS project.
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.
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)
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.
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.
34 ACLOCAL_AMFLAGS = -I m4
38 SUBDIRS = m4 po src doc models
41 # Symlink to openpts-version dir
44 ../$(PACKAGE)-$(PACKAGE_VERSION):
45 ln -s $(PWD) ../$(PACKAGE)-$(PACKAGE_VERSION)
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)/*
56 # ./bootstrap.sh;./configure; make rpmbuild-ba
58 RPMDIR=$(HOME)/rpmbuild
61 rpmbuild-ba: ../$(PACKAGE)-$(PACKAGE_VERSION)
62 rm -f $(RPMDIR)/SOURCES/$(PACKAGE)-$(PACKAGE_VERSION).tar.gz
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
70 # ./bootstrap.sh;./configure; make dpkg-buildpackage
71 # dpkg --contents ../openpts_0.2.0_i386.deb
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
79 dpkg-buildpackage: debian
81 -dpkg-buildpackage -tc -uc -b
82 @echo "make dpkg-buildpackage - done"
86 rm dist/debian/changelog
87 rm dist/debian/copyright