File: Makefile.am

package info (click to toggle)
log4c 1.2.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,872 kB
  • sloc: sh: 11,246; ansic: 8,645; makefile: 682; lex: 134; cpp: 6
file content (59 lines) | stat: -rw-r--r-- 1,520 bytes parent folder | download | duplicates (3)
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
man3dir  = $(mandir)/man3
docdir   = $(datadir)/doc/$(PACKAGE)-$(VERSION)
docfiles = \
	$(top_srcdir)/README \
	$(top_srcdir)/AUTHORS \
	$(top_srcdir)/NEWS \
	$(top_srcdir)/COPYING \
	$(top_srcdir)/ChangeLog

targets = doxygen.stamp

if HAVE_LATEX
targets += $(PACKAGE).pdf
docfiles += $(PACKAGE).pdf
endif

all-local: $(targets)

doxygen.stamp: Doxyfile main.doc
	@DOXYGEN@
	touch $@

#
# If you tell Doxygen to generate latex via the GENERATE_LATEX option
# in Doxyfile then it creates a 'latex' subdirectory containing
# a Makefile to generate the stuff.
#
$(PACKAGE).pdf:
	$(MAKE) -C ./latex pdf
	cp -f ./latex/refman.pdf $(PACKAGE).pdf

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(man3dir)
	@for i in ./man/man3/*.3; do \
		inst=$(PACKAGE)_`basename $$i | sed -e 's/^$(PACKAGE)_//g' `; \
		sed 's,man3/,man3/$(PACKAGE)_,' $$i > $$inst; \
		echo "$(INSTALL_DATA) $$i $(DESTDIR)$(man3dir)/$$inst"; \
		$(INSTALL_DATA) $$inst $(DESTDIR)$(man3dir)/$$inst; \
		rm $$inst; \
	done
	$(mkinstalldirs) $(DESTDIR)$(docdir)
	@for i in $(docfiles); do \
		echo "$(INSTALL_DATA) $$i $(DESTDIR)$(docdir)"; \
		$(INSTALL_DATA) $$i $(DESTDIR)$(docdir); \
	done
	cp -r html $(DESTDIR)$(docdir)

uninstall-local:
	@for i in ./man/man3/*.3; do \
		inst=$(PACKAGE)_`basename $$i | sed -e 's/^$(PACKAGE)_//g' `; \
		echo "rm -f $(DESTDIR)$(man3dir)/$$inst"; \
		rm -f $(DESTDIR)$(man3dir)/$$inst; \
	done
	rm -rf $(DESTDIR)$(docdir)/*

clean-local:
	$(RM) -r latex man html $(PACKAGE).pdf doxygen.log doxygen.stamp

.NOTPARALLEL: