1 # 2 # The 3D Studio File Format Library 3 # Copyright (C) 1996-2007 by Jan Eric Kyprianidis <www.kyprianidis.com> 4 # All rights reserved. 5 # 6 # This program is free software; you can redistribute it and/or modify it 7 # under the terms of the GNU Lesser General Public License as published by 8 # the Free Software Foundation; either version 2.1 of the License, or (at 9 # your option) any later version. 10 # 11 # This program is distributed in the hope that it will be useful, but 12 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 14 # License for more details. 15 # 16 # You should have received a copy of the GNU Lesser General Public License 17 # along with this program; if not, write to the Free Software Foundation, 18 # Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 # 20 # $Id: Makefile.am,v 1.27 2007/06/20 09:05:29 jeh Exp $ 21 # 22 23 24VERSION = @LIB3DS_VERSION@ 25 26SUBDIRS = lib3ds tools 27 28bin_SCRIPTS = lib3ds-config 29 30AUTOMAKE_OPTIONS = 1.4 31 32man_MANS = \ 33 lib3ds-config.1 34 35EXTRA_DIST = \ 36 lib3ds.m4 \ 37 lib3ds-config.1 \ 38 AUTHORS \ 39 COPYING \ 40 ChangeLog \ 41 INSTALL \ 42 README \ 43 TODO \ 44 examples/3dsplay.c \ 45 msvc8/lib3ds.sln \ 46 msvc8/lib3ds.vcproj \ 47 msvc8/lib3ds.rc \ 48 msvc8/3dsdump.vcproj \ 49 msvc8/3dsplay.vcproj 50 51m4datadir = $(datadir)/aclocal 52m4data_DATA = lib3ds.m4 53 54.PHONY: release snapshot 55 56release: 57 rm -rf .deps */.deps 58 $(MAKE) distcheck 59 60snapshot: 61 $(MAKE) dist-zip distdir=$(PACKAGE)-`date +"%Y%m%d"` 62 63 64DIST_NAME = lib3ds-$(VERSION) 65DIST_DIR = /tmp/$(DIST_NAME) 66 67RPM_SOURCE_DIR = /tmp/rpmsource-$(DIST_NAME) 68RPM_BUILD_DIR = /tmp/rpmbuild-$(DIST_NAME) 69RPM_DEST_DIR = . 70 71 72rpm: $(DIST_NAME).tar.gz 73 rm -rf $(RPM_SOURCE_DIR) 74 rm -rf $(RPM_BUILD_DIR) 75 mkdir -p $(RPM_SOURCE_DIR) 76 mkdir -p $(RPM_BUILD_DIR) 77 cp $(DIST_NAME).tar.gz $(RPM_SOURCE_DIR) 78 79 rpmbuild -bb lib3ds.spec \ 80 --define "_sourcedir ${RPM_SOURCE_DIR}" \ 81 --define "_builddir ${RPM_BUILD_DIR}" \ 82 --define "_rpmdir ${RPM_SOURCE_DIR}" 83 84 mv ${RPM_SOURCE_DIR}/i386/lib3ds-*.rpm ${RPM_DEST_DIR} 85 rm -rf ${RPM_SOURCE_DIR} ${RPM_BUILD_DIR} 86 87 88 89