~ihabunek/triglav

ref: 7bd0f8dc1b9e142efe146effd96f2200c8a6ef56 triglav/Makefile -rw-r--r-- 799 bytes
7bd0f8dcIvan Habunek Update/fix prerequisites 5 months ago
                                                                                
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
.PHONY: release deploy

release:
	mix deps.get --only prod
	MIX_ENV=prod mix compile
	MIX_ENV=prod mix assets.deploy
	MIX_ENV=prod mix release --overwrite
	mix phx.digest.clean --all

deploy:
	fab -H bezdomni --prompt-for-sudo-password deploy

clean:
	mix phx.digest.clean --all
	rm -rf priv/static/assets

gtfs_realtime:
	protoc --elixir_out=. \
				 --elixir_opt=package_prefix=gtfs \
				 priv/gtfs/gtfs-realtime.proto
	echo "# Generated from priv/gtfs/gtfs-realtime.proto" > lib/gtfs/transit_realtime.ex
	echo "# See 'gtfs_realtime' command in Makefile" >> lib/gtfs/transit_realtime.ex
	echo "# Do not edit manually\n\n" >> lib/gtfs/transit_realtime.ex
	cat priv/gtfs/gtfs-realtime.pb.ex >> lib/gtfs/transit_realtime.ex
	rm priv/gtfs/gtfs-realtime.pb.ex
	mix format lib/gtfs/transit_realtime.ex