diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2014-01-07 15:15:25 -0800 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2014-01-07 15:15:25 -0800 |
commit | 50fa58592bd54ececa6e58b265486fe10767c95b (patch) | |
tree | 1122ccc2b0693d747181668a634cfe00c1fd370a /examples.mk | |
parent | fdad4fd226f6aeb9107478501537e1c4b6e2f748 (diff) | |
download | libvpx-50fa58592bd54ececa6e58b265486fe10767c95b.tar libvpx-50fa58592bd54ececa6e58b265486fe10767c95b.tar.gz libvpx-50fa58592bd54ececa6e58b265486fe10767c95b.tar.bz2 libvpx-50fa58592bd54ececa6e58b265486fe10767c95b.zip |
Removing examples code generation and making them static.
All documentation will be provided as comments in the source files.
Change-Id: Ie609852747733c181191f864204c787a6b23ef3a
Diffstat (limited to 'examples.mk')
-rw-r--r-- | examples.mk | 46 |
1 files changed, 2 insertions, 44 deletions
diff --git a/examples.mk b/examples.mk index fe36c4f82..66b719ca0 100644 --- a/examples.mk +++ b/examples.mk @@ -205,9 +205,9 @@ $(foreach bin,$(BINS-yes),\ # Rules to generate the GEN_EXAMPLES sources .PRECIOUS: %.c CLEAN-OBJS += $(GEN_EXAMPLES) -%.c: examples/%.txt +%.c: examples/%.c @echo " [EXAMPLE] $@" - @$(SRC_PATH_BARE)/examples/gen_example_code.sh $< > $@ + @cp $< $@ # The following pairs define a mapping of locations in the distribution @@ -252,45 +252,3 @@ INSTALL-BINS-$(CONFIG_MSVS) += $(foreach p,$(VS_PLATFORMS),\ $(addprefix bin/$(p)/,$(ALL_EXAMPLES:.c=.exe))) $(foreach proj,$(call enabled,PROJECTS),\ $(eval $(call vcproj_template,$(proj)))) - - - -# -# Documentation Rules -# -%.dox: examples/%.txt - @echo " [DOXY] $@" - @$(SRC_PATH_BARE)/examples/gen_example_text.sh $< | \ - $(SRC_PATH_BARE)/examples/gen_example_doxy.php \ - example_$(@:.dox=) $(@:.dox=.c) > $@ - -%.dox: %.c - @echo " [DOXY] $@" - @echo "/*!\page example_$(@:.dox=) $(@:.dox=)" > $@ - @echo " \includelineno $(notdir $<)" >> $@ - @echo "*/" >> $@ - -samples.dox: examples.mk - @echo " [DOXY] $@" - @echo "/*!\page samples Sample Code" > $@ - @echo " This SDK includes a number of sample applications."\ - "each sample documents a feature of the SDK in both prose"\ - "and the associated C code. In general, later samples"\ - "build upon prior samples, so it is best to work through the"\ - "list in order. The following samples are included: ">>$@ - @$(foreach ex,$(GEN_EXAMPLES:.c=),\ - echo " - \subpage example_$(ex) $($(ex).DESCRIPTION)" >> $@;) - @echo >> $@ - @echo " In addition, the SDK contains a number of utilities."\ - "Since these utilities are built upon the concepts described"\ - "in the sample code listed above, they are not documented in"\ - "pieces like the samples are. Thir sourcre is included here"\ - "for reference. The following utilities are included:" >> $@ - @$(foreach ex,$(UTILS:.c=),\ - echo " - \subpage example_$(ex) $($(ex).DESCRIPTION)" >> $@;) - @echo "*/" >> $@ - -CLEAN-OBJS += examples.doxy samples.dox $(ALL_EXAMPLES:.c=.dox) -DOCS-yes += examples.doxy samples.dox $(ALL_EXAMPLES:.c=.dox) -examples.doxy: samples.dox $(ALL_EXAMPLES:.c=.dox) - @echo "INPUT += $^" > $@ |