Makefile 783 Bytes
Newer Older
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
DOCUMENTROOT=$(DESTDIR)/www/pages
OWN = -o root -g root
INSTDOCS = 0644
INSTALL = install

DOCS= update_nand.php \
           update_software.html \
           update_software.js \
           update_software.php

LIB_DIR= fileupload
           
LIBS=      $(LIB_DIR)/jquery.fileupload.css \
           $(LIB_DIR)/jquery.fileupload.js \
           $(LIB_DIR)/jquery.iframe-transport.js \
           $(LIB_DIR)/style.css \
           $(LIB_DIR)/UploadHandler.php

all:
	@echo "make all in src"

install:
	@echo "make install in src"
	$(INSTALL) $(OWN) -d $(DOCUMENTROOT) $(DOCUMENTROOT)/js $(DOCUMENTROOT)/js/$(LIB_DIR)
	$(INSTALL) $(OWN) -m $(INSTDOCS) $(DOCS) $(DOCUMENTROOT)
	$(INSTALL) $(OWN) -m $(INSTDOCS) $(LIBS) $(DOCUMENTROOT)/js/$(LIB_DIR)

clean:
	@echo "make clean in src"