Home | History | Annotate | Line # | Download | only in misc
Makefile.am revision 1.1.1.1.2.2
      1 include $(top_srcdir)/Makefile.top
      2 include $(top_srcdir)/Makefile.docs
      3 
      4 OPTIONS_FILES =				\
      5 	rndc.grammar			\
      6 	options				\
      7 	primary.zoneopt			\
      8 	secondary.zoneopt			\
      9 	mirror.zoneopt			\
     10 	forward.zoneopt			\
     11 	hint.zoneopt			\
     12 	stub.zoneopt			\
     13 	static-stub.zoneopt		\
     14 	redirect.zoneopt		\
     15 	delegation-only.zoneopt		\
     16 	in-view.zoneopt
     17 
     18 EXTRA_DIST =			\
     19 	$(OPTIONS_FILES)	\
     20 	checkgrammar.py		\
     21 	parsegrammar.py		\
     22 	sort-options.pl
     23 
     24 if MAINTAINER_MODE
     25 
     26 MAINTAINERCLEANFILES = $(OPTIONS_FILES)
     27 
     28 noinst_PROGRAMS = cfg_test
     29 
     30 cfg_test_CPPFLAGS =			\
     31 	$(AM_CPPFLAGS)			\
     32 	$(LIBISC_CFLAGS)		\
     33 	$(LIBDNS_CFLAGS)		\
     34 	$(LIBISCCFG_CFLAGS)
     35 
     36 cfg_test_LDADD =			\
     37 	$(LIBISC_LIBS)			\
     38 	$(LIBDNS_LIBS)			\
     39 	$(LIBISCCFG_LIBS)
     40 
     41 BUILT_SOURCES =				\
     42 	$(OPTIONS_FILES)
     43 
     44 rndc.grammar: cfg_test
     45 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --rndc --grammar | $(PERL) $(srcdir)/sort-options.pl > $@
     46 
     47 options: cfg_test
     48 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --named --grammar | $(PERL) $(srcdir)/sort-options.pl > $@
     49 
     50 primary.zoneopt: cfg_test
     51 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar primary > $@
     52 
     53 secondary.zoneopt: cfg_test
     54 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar secondary > $@
     55 
     56 mirror.zoneopt: cfg_test
     57 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar mirror > $@
     58 
     59 forward.zoneopt: cfg_test
     60 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar forward > $@
     61 
     62 hint.zoneopt: cfg_test
     63 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar hint > $@
     64 
     65 stub.zoneopt: cfg_test
     66 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar stub > $@
     67 
     68 static-stub.zoneopt: cfg_test
     69 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar static-stub > $@
     70 
     71 redirect.zoneopt: cfg_test
     72 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar redirect > $@
     73 
     74 delegation-only.zoneopt: cfg_test
     75 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar delegation-only > $@
     76 
     77 in-view.zoneopt: cfg_test
     78 	$(AM_V_CFG_TEST)$(builddir)/cfg_test --zonegrammar in-view > $@
     79 
     80 endif
     81