File: Makefile.am

package info (click to toggle)
singular 1:4.1.1-p2+ds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 35,860 kB
  • sloc: cpp: 288,280; ansic: 17,387; lisp: 4,242; yacc: 1,654; python: 1,608; makefile: 1,424; lex: 1,387; perl: 632; sh: 567; xml: 182
file content (62 lines) | stat: -rw-r--r-- 1,782 bytes parent folder | download
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
ACLOCAL_AMFLAGS = -I m4

if ENABLE_FACTORY
  USE_FACTORY = factory
endif

SUBDIRS = resources omalloc $(USE_FACTORY) \
libpolys gfanlib IntegerProgramming \
kernel Singular \
dox emacs desktop

EXTRA_DIST = README README.md README.pkg autogen.sh git-version-gen doxy redhat/singular.spec.in GPL2 GPL3 doc/doc.tbz2

bin_SCRIPTS = libsingular-config

man_MANS = libsingular-config.1

AM_H2MFLAGS = \
	--manual="CAS Singular" \
	--source="Singular" \
	--libtool \
	--no-info

## short descriptions for manpages
libsingular_config_DESCRIPTION = "get information about installed Singular library"

dist-hook:
	$(srcdir)/git-version-gen $(srcdir)/.tarball-git-version > $(distdir)/.tarball-git-version

install-data-local:
	if test -e $(srcdir)/doc/doc.tbz2; then\
	  (cat ${top_srcdir}/doc/doc.tbz2| (cd $(DESTDIR)$(datadir)/singular; tar jxf -));\
	   mkdir $(DESTDIR)$(datadir)/info;\
	   mkdir $(DESTDIR)$(datadir)/doc;\
	   mv  $(DESTDIR)$(datadir)/singular/singular.hlp  $(DESTDIR)$(datadir)/info/.;\
	   mv  $(DESTDIR)$(datadir)/singular/singular.idx  $(DESTDIR)$(datadir)/doc/.;\
	fi
	-cd $(DESTDIR)$(datadir)/singular/html && { \
		chmod a-x a_*.gif ; \
		rdfind -outputname /dev/null -makesymlinks true . ; \
		symlinks -r -c -s -v . ; \
		}


uninstall-local:
	-(cd $(DESTDIR)$(datadir); rm -rf singular info/singular.hlp)

configheaderdir = ${includedir}/$(DEB_HOST_MULTIARCH)/singular/singular
nodist_configheader_HEADERS = singularconfig.h
DISTCLEANFILES = $(nodist_configheader_HEADERS)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = Singular.pc

%.1: %
	$(HELP2MAN) \
			-s 1 \
			$(AM_H2MFLAGS) \
			-I $(top_srcdir)/man/$*.h2m \
			-n $(if $($(subst -,_,$*)_DESCRIPTION), $($(subst -,_,$*)_DESCRIPTION), "manual page for $*") \
			-o $@ \
		$(abs_top_builddir)/$<