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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
# top-level makefile for PDF editor
.PHONY: distclean clean doc-dist source install install-no all uninstall \
uninstall-no install-gui uninstall-gui doc-dist-install \
doc-dist-uninstall check-configure
# includes basic building rules
include Makefile.rules
# make PDF editor - source and documentation
all: check-configure source
check-configure: configure
configure: configure.in
@echo configure script is outdated. You should do autoconf and
@echo rerun ./configure script
exit 1
# Common install target. It depends on configuration which specific
# installation target will be used.
install: @INSTALL_TARGET@ doc-dist-install
install-no:
@echo There is no installation target defined!!! You probably have
@echo not configured PDFedit with installation target.
# Installs gui part
install-gui: source
cd $(GUIROOT) && $(MAKE) -f Makefile.gui install
# TODO Installs development package consisting of header files and
# configuration script for 3rd party applications
# Common uninstall target. It depends on configuration which specific
# uninstallation target will be used
uninstall: @UNINSTALL_TARGET@ doc-dist-uninstall
uninstall-no:
@echo There is no uninstallation target defined!!! You probably have
@echo not configured PDFedit with installation target so that
@echo uninstallation is neither evailable.
# Uninstalls gui part
uninstall-gui:
cd $(GUIROOT) && $(MAKE) -f Makefile.gui uninstall
# TODO Installs development package consisting of header files and
# configuration script for 3rd party applications
# Target for distributed documentation.
doc-dist:
cd $(DOCROOT) && $(MAKE) doc_dist
# Target for distributed documentation (un)installation
doc-dist-install: doc-dist
cd $(DOCROOT) && $(MAKE) doc_dist_install
doc-dist-uninstall:
cd $(DOCROOT) && $(MAKE) doc_dist_uninstall
# make application
source:
cd $(SRCROOT) && $(MAKE)
# cleanup
clean:
cd $(DOCROOT) && $(MAKE) clean || true
cd $(SRCROOT) && $(MAKE) clean || true
$(DEL_FILE) config.log
# dist cleanup
distclean:
cd $(DOCROOT) && $(MAKE) clean || true
cd $(SRCROOT) && $(MAKE) distclean || true
$(DEL_FILE) Makefile config.status config.log Makefile.flags || true
$(DEL_FILE) autom4te.cache/* || true
$(DEL_DIR) autom4te.cache || true
|