File: Makefile.am

package info (click to toggle)
clanlib 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 28,372 kB
  • ctags: 16,520
  • sloc: cpp: 101,145; sh: 8,752; xml: 6,410; makefile: 1,740; ansic: 463; perl: 424; php: 247
file content (39 lines) | stat: -rw-r--r-- 1,148 bytes parent folder | download | duplicates (7)
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
EXTRA_DIST = $(wildcart images/*.png) \
 pce2.txt pce2.in \
 class.plg  cross.plg  desc.plg	init.plg  input.plg  namespace.plg  output.plg

HTML_PREFIX = $(datadir)/doc/@PACKAGE@

HEADERS_API = $(shell find @top_srcdir@/Sources/API -name '*.h')
HEADERS_ALL = $(shell find @top_srcdir@/Sources -name '*.h')

all-local: html/

PLGS = class.plg cross.plg desc.plg init.plg input.plg namespace.plg output.plg


dev_ref: $(PLGS) $(HEADERS_ALL)
	if [ ! -d html ]; then mkdir html; fi
	chmod +x ./pce2
	./pce2 --plgdir $(srcdir) $(HEADERS_ALL)

html/: $(PLGS) $(HEADERS_API)
	if [ ! -d html ]; then mkdir html; fi
	chmod +x ./pce2
	./pce2 --plgdir $(srcdir) $(HEADERS_API)

$(PLGS):
	$(LN_S) $(srcdir)/$@ $@

install-data-hook: html/
	$(INSTALL) -d $(DESTDIR)$(HTML_PREFIX)
	$(INSTALL) -d $(DESTDIR)$(HTML_PREFIX)/Reference
	$(INSTALL) -d $(DESTDIR)$(HTML_PREFIX)/Reference/images
	$(INSTALL) -d $(DESTDIR)$(HTML_PREFIX)/Reference/html
	$(INSTALL) -m 0644 $(srcdir)/images/*.png $(DESTDIR)$(HTML_PREFIX)/Reference/images
	find html/ -name "*.html" -exec $(INSTALL) -m 0644 {} $(DESTDIR)$(HTML_PREFIX)/Reference/html \;

clean-local:
	rm -rf html

# EOF #