www/Makefile

Fri, 05 Aug 2022 12:12:53 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 05 Aug 2022 12:12:53 +0200
changeset 817
6ee186182c70
parent 816
d76f623d487c
child 818
f9c071906643
permissions
-rw-r--r--

Removed product export functions

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

include ../Makefile.global

SRC		= config.php.dist crontasks.php favicon.ico gen_about.php \
		  getbrewlog.php getco2meter.php getco2pressurelog.php getfermentablesources.php \
		  getfermenter.php getfermentlog.php gethopsources.php getmiscsources.php getnode.php \
		  getwatersources.php getyeastsources.php getispindel.php getispindellog.php \
		  import_ingredients.php index.php \
		  log_co2pressure.php log_fermentation.php log_ispindel.php \
		  mon_brewer.php mon_co2meter.php mon_fermenter.php mon_ispindel.php mon_node.php \
		  prod_edit.php prod_inprod.php \
		  rec_view.php rec_main.php \
		  upl_fermentables.php upl_hops.php upl_miscs.php upl_styles.php upl_yeasts.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}/ispindel \
			${WWWDIR}/jqwidgets ${WWWDIR}/js ${WWWDIR}/images/ ${WWWDIR}/includes/
		${INSTALL} -d -g 314 -o 314 -m 0777 ${WWWDIR}/run
		${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log
		${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log/brews
		${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log/fermentation
		${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log/co2pressure
		${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log/ispindel
		${INSTALL} -g 314 -o 314 -m 0644 ${SRC} ${WWWDIR}/
		${INSTALL} -g 314 -o 314 -m 0644 version.php ${WWWDIR}/
		${INSTALL} -g 314 -o 314 -m 0644 css/* ${WWWDIR}/css/
		${INSTALL} -g 314 -o 314 -m 0644 images/* ${WWWDIR}/images/
		${INSTALL} -g 314 -o 314 -m 0644 includes/* ${WWWDIR}/includes/
		${INSTALL} -g 314 -o 314 -m 0644 ispindel/* ${WWWDIR}/ispindel/
		cp -r jqwidgets/* ${WWWDIR}/jqwidgets/
		chown -R 314:314 ${WWWDIR}/jqwidgets
		cp -r -p fpdf/* ${WWWDIR}/fpdf/
		chown -R 314:314 ${WWWDIR}/fpdf
		${INSTALL} -g 314 -o 314 -m 0644 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