# # This is a basic makefile that uses a flat directory structure. It could be # expanded to support multiple subdirectories and/or libraries # #.SILENT: all lib test steril clean tar dist link .DEFAULT TOPDIR=.. ROOTDIR=false PLUGINDIRS=clockdaemon mouseinputdaemon batterydaemon all: all_plugins include $(TOPDIR)/conf/Makefile.common plugin_daemon_dir: @(if [ -e $(PREFIX)/lib/plugins ]; then \ echo "$(PREFIX)/lib/plugins exists"; else \ mkdir $(PREFIX)/lib/plugins ; \ fi) @(if [ -e $(PREFIX)/lib/plugins/daemons ]; then \ echo "$(PREFIX)/lib/plugins/daemons"; else \ mkdir $(PREFIX)/lib/plugins/daemons ; \ fi) all_plugins: plugin_daemon_dir @echo $(VIO)[MAKE]$(NOR) src @for dir in $(PLUGINDIRS); do\ ($(MAKE) -C $$dir) \ done