www/Makefile

Sat, 11 Aug 2018 22:49:44 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 11 Aug 2018 22:49:44 +0200
changeset 10
606b4af8f918
parent 5
36387e45a194
child 18
395833e20f88
permissions
-rw-r--r--

Start of the merge with another unfinished project

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

include ../Makefile.global

SRC		= monitor.php getfermenter.php  getfermenters.php  \
		  getnode.php  getnodes.php config.php.dist \
		  inv_suppliers.php
SUB		= version.php.in images/* css/* jqwidgets/* jqwidgets/styles/* \
		  jqwidgets/styles/images/* jqwidgets/globalization/* js/* \
		  includes/*
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}/jqwidgets ${WWWDIR}/js ${WWWDIR}/images/
		${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/
		cp -r jqwidgets/* ${WWWDIR}/jqwidgets/
		chown -R 314:314 ${WWWDIR}/jqwidgets
		${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