1# include Husky-Makefile-Config
2ifeq ($(DEBIAN), 1)
3# Every Debian-Source-Paket has one included.
4include /usr/share/husky/huskymak.cfg
5else ifdef RPM_BUILD_ROOT
6# For RPM build is require all files in one directory branch
7include ../huskymak.cfg
8else
9include ../../huskymak.cfg
10endif
11
12all: html info dvi
13
14ifdef HTMLDIR
15html: fidoconfig.html
16else
17html:
18	@echo
19endif
20
21ifdef DVIDIR
22dvi: fidoconfig.dvi
23else
24dvi:
25	@echo
26endif
27
28ifdef INFODIR
29info: fidoconfig.info
30else
31info:
32	@echo
33endif
34
35fidoconfig.html: fidoconfig.texi proposal.texi
36	export LC_ALL=C; \
37	makeinfo --html --no-split fidoconfig.texi
38
39fidoconfig.ru.html: rus/fidoconfig.texi rus/proposal.texi
40	export LC_ALL=C; cd rus; \
41	makeinfo --html --no-split -o ../$@ fidoconfig.texi
42
43fidoconfig.dvi: fidoconfig.texi proposal.texi
44	texi2dvi fidoconfig.texi
45
46fidoconfig.ru.dvi: rus/fidoconfig.texi rus/proposal.texi
47	export LC_ALL=C; cd rus; \
48	texi2dvi fidoconfig.texi -o ../$@ fidoconfig.texi
49
50fidoconfig.info: fidoconfig.texi proposal.texi
51	makeinfo --no-split fidoconfig.texi
52
53fidoconfig.ru.info: rus/fidoconfig.texi rus/proposal.texi
54	export LC_ALL=C; cd rus; \
55	makeinfo --no-split -o ../$@ fidoconfig.texi
56
57clean:
58	-$(RM) $(RMOPT) fidoconfig.fns
59	-$(RM) $(RMOPT) fidoconfig.aux
60	-$(RM) $(RMOPT) fidoconfig.toc
61	-$(RM) $(RMOPT) fidoconfig.cp
62	-$(RM) $(RMOPT) fidoconfig.fn
63	-$(RM) $(RMOPT) fidoconfig.vr
64	-$(RM) $(RMOPT) fidoconfig.kr
65	-$(RM) $(RMOPT) fidoconfig.ke
66	-$(RM) $(RMOPT) fidoconfig.tp
67	-$(RM) $(RMOPT) fidoconfig.kes
68	-$(RM) $(RMOPT) fidoconfig.krs
69	-$(RM) $(RMOPT) fidoconfig.ky
70	-$(RM) $(RMOPT) fidoconfig.pg
71	-$(RM) $(RMOPT) fidoconfig.cps
72	-$(RM) $(RMOPT) fidoconfig.log
73	-$(RM) $(RMOPT) *~
74
75distclean: clean
76	-$(RM) $(RMOPT) fidoconfig.dvi
77	-$(RM) $(RMOPT) fidoconfig.inf
78	-$(RM) $(RMOPT) fidoconfig*html
79	-$(RM) $(RMOPT) fidoconfig.ps
80	-$(RM) $(RMOPT) fidoconfig.doc
81	-$(RM) $(RMOPT) fidoconfig.info*
82
83install: info html dvi
84	@echo .
85ifdef INFODIR
86	-$(MKDIR) $(MKDIROPT) $(DESTDIR)$(INFODIR)
87	$(INSTALL) $(IMOPT) fidoconfig.info $(DESTDIR)$(INFODIR)
88endif
89ifdef HTMLDIR
90	-$(MKDIR) $(MKDIROPT) $(DESTDIR)$(HTMLDIR)
91	$(INSTALL) $(IMOPT) fidoconfig*html $(DESTDIR)$(HTMLDIR)
92	-$(INSTALL) $(IMOPT) fastecho2fidoconfig.html $(DESTDIR)$(HTMLDIR)
93endif
94ifdef DVIDIR
95	-$(MKDIR) $(MKDIROPT) $(DESTDIR)$(DVIDIR)
96	$(INSTALL) $(IMOPT) fidoconfig.dvi $(DESTDIR)$(DVIDIR)
97endif
98
99uninstall:
100	-install-info --remove --info-dir=$(INFODIR) $(DESTDIR)$(INFODIR)$(DIRSEP)fidoconfig.info
101	-$(RM) $(RMOPT) $(DESTDIR)$(INFODIR)$(DIRSEP)fidoconfig.info
102	-$(RM) $(RMOPT) $(DESTDIR)$(HTMLDIR)$(DIRSEP)fidoconfig*html $(DESTDIR)$(HTMLDIR)$(DIRSEP)fastecho2fidoconfig.html
103	-$(RM) $(RMOPT) $(DESTDIR)$(DVIDIR)$(DIRSEP)fidoconfig.dvi
104