# # 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=true SUBLIBFILES=$(LIBFILES_$(PWD)) TRANSDIR=./share/locale/ TRANSTEMPLATE=iwear_dcagmarkassistant.pot all: systarget include $(TOPDIR)/conf/Makefile.common systarget: lib plugins_application plugin_dirs: -mkdir $(PREFIX)/lib/plugins -mkdir $(PREFIX)/lib/plugins/applications # @( if [ -e $(PREFIX)/lib/plugins ]; then # echo "$(PREFIX)/lib/plugins exists" # else # mkdir $(PREFIX)/lib/plugins # fi ) # @(if [ -e $(PREFIX)/lib/plugins/applications ]; then # echo "$(PREFIX)/lib/plugins/applications" # else # mkdir $(PREFIX)/lib/plugins/applications # fi ) plugins plugins_application: plugin_dirs lib @echo $(VIO)[MAKE]$(NOR) plugins/applications $(MAKE) -C plugins_application all run : lib @echo $(VIO)[MAKE]$(NOR) $(SRCDIRS) @$(MAKE) -C $(SRCDIRS) run fastmd5sum frag test test_tcp_ssl poread: lib @echo $(VIO)[MAKE]$(NOR) $@ @$(MAKE) -C src $@ db: @createdb -U postgres iwear_dcag@ @psql -U postgres -d iwear_dcag -f ../sql/dbschema.sql@ sampledata: @psql -U postgres -d iwear_dcag -f ../sql/samplerecords.sql@