Makefile 787 Bytes
Newer Older
1 2
VERILOGDIR=   $(DESTDIR)/usr/local/verilog
INSTALLDIR=   $(DESTDIR)/usr/local/bin
3
WWW_PAGES =   $(DESTDIR)/www/pages
4 5 6 7 8 9 10 11
SCRIPTPATH=   py393sata
 
OWN = -o root -g root

INSTMODE   = 0755
DOCMODE    = 0644

PYTHON_EXE = $(SCRIPTPATH)/*.py
12
PHP_EXE    = $(SCRIPTPATH)/*.php
13 14 15 16 17 18 19 20
FPGA_BITFILES =   x393_sata.bit

all:
	@echo "make all in x393sata"
install:
	@echo "make install in x393sata"
	$(INSTALL) $(OWN) -d $(VERILOGDIR)
	$(INSTALL) $(OWN) -d $(INSTALLDIR)
21
	$(INSTALL) $(OWN) -d $(WWW_PAGES)
22 23 24

	$(INSTALL) $(OWN) -m $(INSTMODE) $(PYTHON_EXE)                          $(INSTALLDIR)
	$(INSTALL) $(OWN) -m $(DOCMODE)  $(FPGA_BITFILES)                       $(VERILOGDIR)
25
	$(INSTALL) $(OWN) -m $(INSTMODE) $(PHP_EXE)                             $(WWW_PAGES)
26 27 28
clean:
	@echo "make clean in x393sata"