www/Makefile

Sat, 19 Jan 2019 12:05:37 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 19 Jan 2019 12:05:37 +0100
changeset 189
6470e5c6a001
parent 186
a7c2c61a01ad
child 194
d202777ebae5
permissions
-rw-r--r--

In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.

# Makefile for the bms webserver
# Copyright (c) 2018 by M. Broek.

include ../Makefile.global

SRC		= cmd_fermenter.php config.php.dist favicon.ico gen_about.php getfermentablesources.php \
		  getfermenter.php getfermentlog.php gethopsources.php getmiscsources.php \
		  getnode.php getwatersources.php getyeastsources.php index.php \
		  inv_equipments.php inv_fermentables.php inv_hops.php inv_instock.php \
		  inv_miscs.php inv_suppliers.php inv_waters.php inv_yeasts.php \
		  log_fermentation.php mon_brewer.php mon_fermenter.php mon_node.php \
		  prod_edit.php prod_export.php prod_inprod.php prod_new.php prod_print.php \
		  profile_fermentation.php \
		  profile_mash.php profile_setup.php profile_styles.php profile_water.php \
		  rec_edit.php rec_export.php rec_main.php rec_new.php rec_print.php \
		  version.php
SUB		= version.php.in images/* css/* jqwidgets/* jqwidgets/styles/* \
		  jqwidgets/styles/images/* jqwidgets/globalization/* js/* \
		  includes/* fpdf/* import/*
OTHER		= Makefile

#############################################################################

.c.o:
		${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<

all:

clean:
		rm -f version.php

install:
		${INSTALL} -d -g 314 -o 314 ${PREFIX} ${WWWDIR} ${WWWDIR}/css ${WWWDIR}/fpdf \
			${WWWDIR}/fpdf/font \
			${WWWDIR}/jqwidgets ${WWWDIR}/js ${WWWDIR}/images/ ${WWWDIR}/includes/
		${INSTALL} -d -g 314 -o 314 -m 0777 ${WWWDIR}/run
		${INSTALL} -g 314 -o 314 ${SRC} ${WWWDIR}/
		${INSTALL} -g 314 -o 314 version.php ${WWWDIR}/
		${INSTALL} -g 314 -o 314 css/* ${WWWDIR}/css/
		${INSTALL} -g 314 -o 314 images/* ${WWWDIR}/images/
		${INSTALL} -g 314 -o 314 includes/* ${WWWDIR}/includes/
		cp -r jqwidgets/* ${WWWDIR}/jqwidgets/
		chown -R 314:314 ${WWWDIR}/jqwidgets
		cp -r fpdf/* ${WWWDIR}/fpdf/
		chown -R 314:314 ${WWWDIR}/fpdf
		${INSTALL} -g 314 -o 314 js/* ${WWWDIR}/js/

filelist:	Makefile
		BASE=`pwd`; \
		BASE=`basename $${BASE}`; \
		(for f in ${SRC} ${SUB} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist

depend:

mercurial