ifeq ($(IMAGEMAGICK),)
all: requirements_not_met_imagemagick
else
-all: images html/postgis.html postgis_comments.sql raster_comments.sql topology_comments.sql tiger_geocoder_comments.sql
+all: comments
endif
endif
endif
postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.pdf: postgis-out.xml images
- @if test x"$(DBLATEX)" = x; then \
+ if test x"$(DBLATEX)" = x; then \
echo "Error: dblatex not found, can't build pdf"; \
echo " try installing dblatex and then re-run configure"; \
false; \
images:
make -C html/image_src images
-clean:
+clean:
+ rm -f html/*.html
+ rm -f postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.pdf
make -C html/image_src clean
- @rm -f postgis-out.xml postgis_aggs_mm.xml
+ rm -f postgis-out.xml postgis_aggs_mm.xml
maintainer-clean: clean
- @rm -f html/*.html \
- postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.pdf
+ rm -f postgis_comments.sql raster_comments.sql topology_comments.sql tiger_geocoder_comments.sql
comments: postgis_comments.sql raster_comments.sql topology_comments.sql tiger_geocoder_comments.sql
cheatsheets: postgis_cheatsheet.html raster_cheatsheet.html topology_cheatsheet.html tiger_geocoder_cheatsheet.html
find "$outdir" -name .cvsignore -exec rm {} \;
rm -f "$outdir"/make_dist.sh "$outdir"/HOWTO_RELEASE
-# generating configure script
+# generating configure script and configuring
echo "Running autogen.sh; ./configure"
owd="$PWD"
cd "$outdir"
./autogen.sh
./configure
-make
+#make
cd "$owd"
-# generating documentation
-echo "Generating documentation images"
-owd="$PWD"
-cd "$outdir"/doc/html/image_src
-sleep 1 # wait some time
-make images
-if [ $? -gt 0 ]; then
- exit 1
-fi
-cd "$owd"
-
-# generating documentation
+# generating comments
echo "Generating documentation"
owd="$PWD"
cd "$outdir"/doc
-sleep 2 # wait some time to have 'make' recognize it needs to build html
-make
+make comments
if [ $? -gt 0 ]; then
exit 1
fi
-make clean # won't drop the html dir, or postgis_comments.sql
+make clean # won't drop the comment files
cd "$owd"
# Run make distclean