Makefile 1.5 KB
Newer Older
Florent Chehab's avatar
Florent Chehab 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
30
31
32
33
34
35
all: 
	mkdir -p generated
	../manage.py graph_models backend --disable-fields -g \
		| tail -n +2 > generated/architecture.dot
	dot -Tsvg generated/architecture.dot -o generated/architecture.svg


	../manage.py graph_models backend --disable-abstract-fields -g -I \
		MyModel,MyModelVersionned,BasicModule,Scholarship,UserRestrictedModule \
		| tail -n +2 > generated/abstract.dot
	dot -Tsvg generated/abstract.dot -o generated/abstract.svg

	../manage.py graph_models backend --disable-abstract-fields -g -I \
		Specialty,Offer,Semester,Department,University \
		| tail -n +2 > generated/core.dot
	dot -Tsvg generated/core.dot -o generated/core.svg

	../manage.py graph_models backend --disable-abstract-fields -g -I \
		University,UniversityScholarship,UniversityInfo,UniversitySemestersDates,UniversityTaggedItems,UniversityDri,Campus,CampusTaggedItems \
		| tail -n +2 > generated/university.dot
	dot -Tsvg generated/university.dot -o generated/university.svg

	../manage.py graph_models backend --disable-abstract-fields -g -I \
		Country,City,CountryTaggedItems,CityTaggedItems,CountryScholarship,CountryDri\
		| tail -n +2 > generated/location.dot
	dot -Tsvg generated/location.dot -o generated/location.svg

	../manage.py graph_models backend --disable-abstract-fields -g -I \
		RecommendationsList,Recommendation,UserData,PreviousDeparture,PreviousDepartureFeedback,Semester,University,Sepcialty\
		| tail -n +2 > generated/user.dot
	dot -Tsvg generated/user.dot -o generated/user.svg
.PHONY: clean 

clean:
	rm -rf generated/