Makefile
76 lines
| 1.6 KiB
| text/x-makefile
|
MakefileLexer
alexis
|
r7 | SCRIPTSDIR=scripts/ | ||
LIBDIR=lib/ | ||||
BOARDSDIR=boards/ | ||||
DESIGNSDIR=designs/ | ||||
Alexis
|
r39 | .PHONY:doc | ||
alexis
|
r7 | |||
Alexis
|
r1 | all: help | ||
help: | ||||
@echo | ||||
@echo " batch targets:" | ||||
@echo | ||||
alexis
|
r7 | @echo " make Patch-GRLIB : install library into GRLIB at : $(GRLIB)" | ||
Alexis
|
r1 | @echo " make dist : create a tar file for using into an other computer" | ||
Alexis
|
r39 | @echo " make Patched-dist : create a tar file for with a patched grlib for using" | ||
@echo " into an other computer" | ||||
Alexis
|
r1 | @echo " make allGPL : add a GPL HEADER in all vhdl Files" | ||
@echo " make init : add a GPL HEADER in all vhdl Files, init all files" | ||||
@echo " make doc : make documentation for VHDL IPs" | ||||
Alexis
|
r15 | @echo " make pdf : make pdf documentation for VHDL IPs" | ||
Alexis
|
r39 | @echo " make C-libs : make C drivers for APB devices" | ||
@echo " binary files availiable on VHD_Lib/LPP_DRIVERS/lib ./includes" | ||||
Alexis
|
r1 | @echo | ||
Alexis
|
r39 | |||
Alexis
|
r1 | allGPL: | ||
Alexis
|
r19 | @echo "Scanning VHDL files ..." | ||
sh $(SCRIPTSDIR)/GPL_Patcher.sh -R vhd lib | ||||
@echo "Scanning C files ..." | ||||
sh $(SCRIPTSDIR)/GPL_Patcher.sh -R c LPP_drivers | ||||
@echo "Scanning H files ..." | ||||
sh $(SCRIPTSDIR)/GPL_Patcher.sh -R h LPP_drivers | ||||
Alexis
|
r1 | |||
yannic
|
r34 | init: C-libs | ||
alexis
|
r7 | sh $(SCRIPTSDIR)/vhdlsynPatcher.sh | ||
sh $(SCRIPTSDIR)/makeDirs.sh lib/lpp | ||||
yannic
|
r34 | |||
Alexis
|
r36 | C-libs:APB_devs | ||
Alexis
|
r30 | make -C LPP_drivers | ||
Alexis
|
r1 | |||
Alexis
|
r36 | |||
APB_devs: | ||||
sh $(SCRIPTSDIR)/APB_DEV_UPDATER.sh | ||||
Alexis
|
r1 | Patch-GRLIB: init doc | ||
alexis
|
r7 | sh $(SCRIPTSDIR)/patch.sh $(GRLIB) | ||
Alexis
|
r1 | |||
dist: init | ||||
alexis
|
r7 | tar -cvzf ./../lpp-lib.tgz ./../VHD_Lib/* | ||
Alexis
|
r1 | |||
Alexis
|
r30 | |||
Alexis
|
r1 | Patched-dist: Patch-GRLIB | ||
tar -cvzf ./../lpp-patched-GRLIB.tgz $(GRLIB)/* | ||||
doc: | ||||
alexis
|
r67 | cp doc/ressources/*.jpg doc/html/ | ||
cp doc/ressources/doxygen.css doc/html/ | ||||
Alexis
|
r39 | make -C lib/lpp doc | ||
alexis
|
r67 | make -C LPP_drivers doc | ||
Alexis
|
r15 | |||
Alexis
|
r30 | |||
Alexis
|
r19 | pdf: doc | ||
sh $(SCRIPTSDIR)/doc.sh | ||||
Alexis
|
r30 | |||