Plasma GitLab Archive
Projects Blog Knowledge

# make all: compiles the configured packages with ocamlc
# make opt: compiles the configured packages with ocamlopt
# make install: installs the configured packages
# make clean: cleans everything up

# Inclusion of Makefile.conf may fail when cleaning up:
-include Makefile.conf

NAME=wdialog
TOP_DIR=.

# PKGLIST: should be set in Makefile.conf. It contains the packages to
# compile and to install. The following assignment sets it to its
# default value if no Makefile.conf exists.
PKGLIST ?= wdialog

.PHONY: all
all:
	#$(MAKE) -C tools all
	for pkg in $(PKGLIST); do $(MAKE) -C src/$$pkg all || exit; done

.PHONY: opt
opt:
	for pkg in $(PKGLIST); do $(MAKE) -C src/$$pkg opt || exit; done

.PHONY: perlapi
perlapi:
	$(MAKE) -C src/UI perlapi

# The following PHONY rule is important for Cygwin:
.PHONY: install
install:
	for pkg in $(PKGLIST); do $(MAKE) -C src/$$pkg install || exit; done

.PHONY: uninstall
uninstall:
	for pkg in src/*/.; do test ! -f $$pkg/Makefile || $(MAKE) -C $$pkg uninstall; done

.PHONY: install-perlapi
install-perlapi:
	$(MAKE) -C src/UI install-perlapi

.PHONY: clean
clean:
	#rm -f Makefile.conf
	#$(MAKE) -C tools CLEAN
	for pkg in src/*/.; do test ! -f $$pkg/Makefile || $(MAKE) -C $$pkg clean; done

.PHONY: CLEAN
CLEAN: clean

.PHONY: distclean
distclean:
	rm -f Makefile.conf
	#$(MAKE) -C tools distclean
	for pkg in src/*/.; do test ! -f $$pkg/Makefile || $(MAKE) -C $$pkg distclean; done

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml