File: Makefile.am

package info (click to toggle)
libforms 1.2.3-1.3
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 10,736 kB
  • ctags: 9,015
  • sloc: ansic: 97,669; sh: 11,156; makefile: 951
file content (53 lines) | stat: -rw-r--r-- 1,192 bytes parent folder | download | duplicates (4)
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
include $(top_srcdir)/config/common.am

DISTCLEANFILES += libforms.spec config.status config.cache config.log config.h

ACLOCAL_AMFLAGS = -I config

MAINTAINERCLEANFILES += \
	$(srcdir)/aclocal.m4 \
	$(srcdir)/configure \
	$(srcdir)/acinclude.m4 \
	$(srcdir)/lib/config.h.in

if BUILD_DEMOS
DEMOS = demos
else
DEMOS =
endif

if BUILD_GL
GL = gl
else
GL =
endif

if BUILD_DOCS
DOCS = doc
else
DOCS =
endif

SUBDIRS = config lib image $(GL) fdesign fd2ps $(DEMOS) $(DOCS)

# libforms.spec is needed as well as libforms.spec.in or else 'make rpmdist'
# will fail.

EXTRA_DIST = ChangeLog COPYING.LIB Copyright INSTALL INSTALL.git README \
			 README.rpmbuild autogen.sh libforms.spec.in libforms.spec

# Builds RPM packages (using the libforms.spec file), one (architecture-
# dependend) binary package and a development, documentation and source
# package

libdist: dist
	tar -vxf $(PACKAGE)-$(VERSION).tar.gz; \
	rm -f $(PACKAGE)-$(VERSION).tar.gz; \
	mv $(PACKAGE)-$(VERSION) libforms-$(VERSION); \
	tar -czf libforms-$(VERSION).tar.gz libforms-$(VERSION); \
	rm -rf libforms-$(VERSION);

rpmdist: libdist
	rpmbuild -ta libforms-$(VERSION).tar.gz; \
	saved_status=$$?; \
	exit $$saved_status