File: Makefile.am

package info (click to toggle)
lib3ds 1.3.0-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,028 kB
  • sloc: ansic: 10,676; sh: 10,129; makefile: 114; sed: 47
file content (88 lines) | stat: -rw-r--r-- 2,145 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
 #
 # The 3D Studio File Format Library
 # Copyright (C) 1996-2007 by Jan Eric Kyprianidis <www.kyprianidis.com>
 # All rights reserved.
 #
 # This program is  free  software;  you can redistribute it and/or modify it
 # under the terms of the  GNU Lesser General Public License  as published by 
 # the  Free Software Foundation;  either version 2.1 of the License,  or (at 
 # your option) any later version.
 #
 # This  program  is  distributed in  the  hope that it will  be useful,  but
 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 # or  FITNESS FOR A  PARTICULAR PURPOSE.  See the  GNU Lesser General Public  
 # License for more details.
 #
 # You should  have received  a copy of the GNU Lesser General Public License
 # along with  this program;  if not, write to the  Free Software Foundation,
 # Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
 # $Id: Makefile.am,v 1.27 2007/06/20 09:05:29 jeh Exp $
 #


VERSION = @LIB3DS_VERSION@

SUBDIRS = lib3ds tools 

bin_SCRIPTS = lib3ds-config

AUTOMAKE_OPTIONS = 1.4

man_MANS = \
  lib3ds-config.1

EXTRA_DIST = \
  lib3ds.m4 \
  lib3ds-config.1 \
  AUTHORS \
  COPYING \
  ChangeLog \
  INSTALL \
  README \
  TODO \
  examples/3dsplay.c \
  msvc8/lib3ds.sln \
  msvc8/lib3ds.vcproj \
  msvc8/lib3ds.rc \
  msvc8/3dsdump.vcproj \
  msvc8/3dsplay.vcproj

m4datadir = $(datadir)/aclocal
m4data_DATA = lib3ds.m4

.PHONY: release snapshot

release:
	rm -rf .deps */.deps
	$(MAKE) distcheck

snapshot:
	$(MAKE) dist-zip distdir=$(PACKAGE)-`date +"%Y%m%d"`


DIST_NAME = lib3ds-$(VERSION)
DIST_DIR = /tmp/$(DIST_NAME)

RPM_SOURCE_DIR = /tmp/rpmsource-$(DIST_NAME)
RPM_BUILD_DIR = /tmp/rpmbuild-$(DIST_NAME)
RPM_DEST_DIR = .


rpm: $(DIST_NAME).tar.gz
	rm -rf $(RPM_SOURCE_DIR)
	rm -rf $(RPM_BUILD_DIR)
	mkdir -p $(RPM_SOURCE_DIR)
	mkdir -p $(RPM_BUILD_DIR)
	cp $(DIST_NAME).tar.gz $(RPM_SOURCE_DIR)

	rpmbuild -bb lib3ds.spec \
	  --define "_sourcedir ${RPM_SOURCE_DIR}" \
	  --define "_builddir ${RPM_BUILD_DIR}" \
	  --define "_rpmdir ${RPM_SOURCE_DIR}"

	mv ${RPM_SOURCE_DIR}/i386/lib3ds-*.rpm ${RPM_DEST_DIR}
	rm -rf ${RPM_SOURCE_DIR} ${RPM_BUILD_DIR}