File: rules

package info (click to toggle)
c3 0.4.11%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 2,156 kB
  • sloc: makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 678 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

override_dh_clean:
	dh_clean
	rm -f $(CURDIR)/smash-c3.js
	rm -rf $(CURDIR)/debian/build/
	rm -rf $(CURDIR)/.sass-cache/

override_dh_auto_build:
	install -d $(CURDIR)/debian/build/
	ln -s $(CURDIR)/debian/smash-c3.js $(CURDIR)
	smash $(CURDIR)/smash-c3.js >$(CURDIR)/debian/build/c3.js
	uglifyjs $(CURDIR)/debian/build/c3.js \
		>$(CURDIR)/debian/build/c3.min.js
	sassc $(CURDIR)/src/scss/main.scss \
		>$(CURDIR)/debian/build/c3.css
	cleancss $(CURDIR)/debian/build/c3.css \
		>$(CURDIR)/debian/build/c3.min.css

%:
	dh $@

.PHONY: override_dh_clean override_dh_auto_build