Makefile 1.52 KB
Newer Older
1
init:
Florent Chehab's avatar
Florent Chehab committed
2
	mkdir -p generated
3 4 5 6

extract_django: init
	../backend/manage.py graph_models backend_app --disable-fields -g \
		> generated/architecture.dot
Florent Chehab's avatar
Florent Chehab committed
7 8


9
	../backend/manage.py graph_models backend_app --disable-abstract-fields -g -I \
Florent Chehab's avatar
Florent Chehab committed
10
		MyModel,MyModelVersionned,BasicModule,Scholarship,UserRestrictedModule \
11
		> generated/abstract.dot
Florent Chehab's avatar
Florent Chehab committed
12

13
	../backend/manage.py graph_models backend_app --disable-abstract-fields -g -I \
Florent Chehab's avatar
Florent Chehab committed
14
		Specialty,Offer,Department,University \
15
		> generated/core.dot
Florent Chehab's avatar
Florent Chehab committed
16

17
	../backend/manage.py graph_models backend_app --disable-abstract-fields -g -I \
Florent Chehab's avatar
Florent Chehab committed
18
		University,UniversityScholarship,UniversityInfo,UniversitySemestersDates,UniversityTaggedItems,UniversityDri,Campus,CampusTaggedItems \
19
		> generated/university.dot
Florent Chehab's avatar
Florent Chehab committed
20

21
	../backend/manage.py graph_models backend_app --disable-abstract-fields -g -I \
Florent Chehab's avatar
Florent Chehab committed
22
		Country,City,CountryTaggedItems,CityTaggedItems,CountryScholarship,CountryDri\
23
		> generated/location.dot
Florent Chehab's avatar
Florent Chehab committed
24

25
	../backend/manage.py graph_models backend_app --disable-abstract-fields -g -I \
Florent Chehab's avatar
Florent Chehab committed
26
		RecommendationsList,Recommendation,UserData,PreviousDeparture,PreviousDepartureFeedback,University,Sepcialty\
27 28 29 30 31 32 33 34
		> generated/user.dot

convert_to_svg: init
	dot -Tsvg generated/architecture.dot -o generated/architecture.svg
	dot -Tsvg generated/abstract.dot -o generated/abstract.svg
	dot -Tsvg generated/core.dot -o generated/core.svg
	dot -Tsvg generated/university.dot -o generated/university.svg
	dot -Tsvg generated/location.dot -o generated/location.svg
Florent Chehab's avatar
Florent Chehab committed
35
	dot -Tsvg generated/user.dot -o generated/user.svg
36 37

.PHONY: clean
Florent Chehab's avatar
Florent Chehab committed
38 39 40

clean:
	rm -rf generated/