summaryrefslogtreecommitdiff
path: root/user-guide/C/Makefile.am
blob: f7ebd38355966545851cd64e0e2768c7f61e4bf4 (plain)
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
NULL=

LANG=C

DOC_MODULE=nautilus
OMFFILE=nautilus-C.omf
SGMLFILE=nautilus.sgml
SGML_DIR=$(datadir)/gnome/help
OMF_DIR=$(top_srcdir)/omf-install

TARGET_DIR=$(SGML_DIR)/$(DOC_MODULE)/$(LANG)/

EXTRA_DIST = $(OMFFILE)

all: omf

omf: $(OMFFILE)
	-scrollkeeper-preinstall $(DESTDIR)$(TARGET_DIR)$(SGMLFILE) $(OMFFILE) $(OMF_DIR)/$(OMFFILE)


install-data-local: 
	$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) 
	installfiles=`echo $(srcdir)/sgml/*.sgml 		\
	$(srcdir)/img/*.png					\
	$(srcdir)/html/*.html`;					\
	if test "$$installfiles" = '$(srcdir)/sgml/*.sgml'; 	\
	then echo '-- Nothing to install' ; 			\
	else 							\
	for i in $$installfiles; do				\
		basefile=`basename $$i`;  			\
		$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)$$basefile; 	\
	done; 							\
	fi

dist-hook:
	mkdir $(distdir)/sgml 
	mkdir $(distdir)/html 
	mkdir $(distdir)/img
	-cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
	-cp $(srcdir)/img/*.png $(distdir)/img
	-cp $(srcdir)/html/*.html $(distdir)/html