1234567891011121314151617181920212223242526272829303132333435363738394041 |
- # Makefile for Dinit.
- all: mconfig
- $(MAKE) -C build all
- $(MAKE) -C src all
- $(MAKE) -C doc/manpages all
- @echo "***"
- @echo "*** Build complete; use \"make check\" to run unit tests, \"make check-igr\" for"
- @echo "*** integration tests, or \"make install\" to install."
- @echo "***"
- check: mconfig
- $(MAKE) -C src check
- check-igr: mconfig
- $(MAKE) -C src check-igr
- run-cppcheck:
- $(MAKE) -C src run-cppcheck
- install: mconfig
- $(MAKE) -C src install
- $(MAKE) -C doc/manpages install
- clean:
- $(MAKE) -C src clean
- $(MAKE) -C build clean
- $(MAKE) -C doc/manpages clean
- mconfig:
- @UNAME=`uname`;\
- if [ -f "./configs/mconfig.$$UNAME.sh" ]; then \
- echo "*** Found auto-configuration script for OS: $$UNAME"; \
- ( cd ./configs; sh "mconfig.$$UNAME.sh" ) \
- elif [ -f "./configs/mconfig.$$UNAME" ]; then \
- echo "*** Found configuration for OS: $$UNAME"; \
- ln -sf "configs/mconfig.$$UNAME" mconfig; \
- else \
- echo "*** No config available. Please create suitable mconfig file."; \
- exit 1; \
- fi
|